[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
forms
/
registrars
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 form-actions-registrar.php
2,472 B
SET
[ EDIT ]
|
[ DEL ]
📄 form-fields-registrar.php
1,237 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: form-actions-registrar.php
<?php namespace ElementorPro\Modules\Forms\Registrars; use ElementorPro\Core\Utils\Registrar; use ElementorPro\Modules\Forms\Actions; use ElementorPro\Plugin; use ElementorPro\License\API; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Basic form actions registration manager. */ class Form_Actions_Registrar extends Registrar { const FEATURE_NAME_CLASS_NAME_MAP = [ 'email' => 'Email', 'email2' => 'Email2', 'redirect' => 'Redirect', 'webhook' => 'Webhook', 'mailchimp' => 'Mailchimp', 'drip' => 'Drip', 'activecampaign' => 'Activecampaign', 'getresponse' => 'Getresponse', 'convertkit' => 'Convertkit', 'mailerlite' => 'Mailerlite', 'slack' => 'Slack', 'discord' => 'Discord', ]; /** * Form_Actions_Registrar constructor. * * @return void */ public function __construct() { parent::__construct(); $this->init(); } /** * Initialize the default fields. * * @return void */ public function init() { // Register the actions handlers using a hook since some actions need to be registered before those actions (e.g: save-to-database). add_action( 'elementor_pro/forms/actions/register', function ( Form_Actions_Registrar $actions_registrar ) { $form_actions = API::filter_active_features( static::FEATURE_NAME_CLASS_NAME_MAP ); foreach ( $form_actions as $action ) { $class_name = 'ElementorPro\Modules\Forms\Actions\\' . $action; $actions_registrar->register( new $class_name() ); } } ); /** * Deprecated actions registration hook. * * @deprecated 3.5.0 Use `elementor_pro/forms/actions/register` instead. */ Plugin::elementor()->modules_manager->get_modules( 'dev-tools' )->deprecation->do_deprecated_action( 'elementor_pro/forms/register_action', [ $this ], '3.5.0', 'elementor_pro/forms/actions/register' ); /** * Elementor Pro form actions registration. * * Fires when a new form action is registered. This hook allows developers to * register new form actions. * * @since 3.5.0 * * @param Form_Actions_Registrar $this An instance of form actions registration * manager. */ do_action( 'elementor_pro/forms/actions/register', $this ); // MailPoet if ( class_exists( '\WYSIJA' ) ) { $this->register( new Actions\Mailpoet() ); } // MailPoet if ( class_exists( '\MailPoet\API\API' ) ) { $this->register( new Actions\Mailpoet3() ); } } }