MailPoet'; printf( __( '%s plugin requires %s plugin, Please activate %s first to using %s.', 'add-on-gravity-forms-mailpoet' ), $name, $mp_link, $mp_link, $name ); ?>
$notice
"; } delete_option( 'gf_new_mailpoet_plugin_deferred_admin_notices' ); } } register_deactivation_hook( __FILE__, 'gf_new_mailpoet_plugin_deactivation' ); function gf_new_mailpoet_plugin_deactivation() { delete_option( 'gf_new_mailpoet_plugin_deferred_admin_notices' ); } /** * array_column alternatives for PHP version less than PHP 5.5 * this file / function has no effect on php version greater than php 5.5 */ include plugin_dir_path( __FILE__ ) . '/array_column.php'; /** * Mailpoet class load */ use MailPoet\Models\Subscriber; use MailPoet\Models\Segment; use MailPoet\Subscribers\ConfirmationEmailMailer; use MailPoet\Subscribers\NewSubscriberNotificationMailer; use MailPoet\Models\CustomField; /* * Add a MailPoet custom field in each gravity form field * */ add_action( 'gform_field_standard_settings', 'my_standard_settings', 10, 2 ); function my_standard_settings( $position, $form_id ) { //create settings on position 25 (right after Field Label) if ( $position == 25 ) { ?>