| Server IP : 185.143.234.238 / Your IP : 185.215.232.195 Web Server : nginx/1.22.1 System : Linux server2065 6.1.0-35-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.137-1 (2025-05-07) x86_64 User : www-data ( 33) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/bcandle/wp-content/plugins/jet-engine/includes/modules/forms/tabs/ |
Upload File : |
<?php
namespace Jet_Engine\Modules\Forms\Tabs;
class Mailchimp extends Base_Form_Tab {
public function slug() {
return 'mailchimp';
}
public function on_get_request() {
$this->verify_request();
$api_key = sanitize_text_field( $_POST['api_key'] );
$result = $this->update_options( array(
'api_key' => $api_key,
) );
$result ? wp_send_json_success( array(
'message' => __( 'Saved successfully!', 'jet-fom-builder' )
) ) : wp_send_json_error( array(
'message' => __( 'Unsuccessful save.', 'jet-form-builder' )
) );
}
public function on_load() {
return $this->get_options( array(
'api_key' => '',
) );
}
}