| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/send-app/modules/wp-forms/ |
Upload File : |
<?php
namespace Send_App\Modules\WP_Forms;
use Send_App\Core\Integrations\Classes\Integration_Module_Base;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* WPForms Integration Module
*
* Handles integration with WPForms plugin, providing form data and submission handling.
*/
class Module extends Integration_Module_Base {
/**
* Get the integration name
*
* @return string The integration name
*/
public static function get_name(): string {
return 'wpforms';
}
/**
* Get list of available integrations
*
* @return array Array of integration class names
*/
protected function integrations_list(): array {
return [
'All_Forms',
'Form_View',
'Form_Submit',
];
}
/**
* Get list of available components
*
* @return array Array of component class names
*/
protected function components_list(): array {
return [
'Forms',
];
}
/**
* Check if WPForms plugin is activated
*
* @return bool True if WPForms is active, false otherwise
*/
public function is_plugin_activated(): bool {
$is_active = class_exists( '\WPForms\WPForms' ) || class_exists( '\WPForms_Pro' );
return $is_active;
}
}