'10461',
'slug' => 'post-smtp',
'type' => 'plugin',
'public_key' => 'pk_28fcefa3d0ae86f8cdf6b7f71c0cc',
'is_premium' => false,
'has_addons' => false,
'bundle_id' => '10910',
'bundle_public_key' => 'pk_c5110ef04ba30cd57dd970a269a1a',
'has_paid_plans' => true,
'menu' => array(
'slug' => 'postman',
'first-path' => 'admin.php?page=postman/configuration_wizard',
'account' => false,
),
) );
}
return $ps_fs;
}
// Init Freemius.
ps_fs();
// Signal that SDK was initiated.
do_action( 'ps_fs_loaded' );
}
function ps_fs_custom_connect_message_on_update(
$message,
$user_first_name,
$product_title,
$user_login,
$site_link,
$freemius_link
) {
return sprintf(
'
' .
''
);
}
ps_fs()->add_filter('connect_message', 'ps_fs_custom_connect_message_on_update', 10, 6);
function ps_fs_custom_icon() {
return dirname( __FILE__ ) . '/assets/images/icons/optin.png';
}
ps_fs()->add_filter( 'plugin_icon' , 'ps_fs_custom_icon' );
/**
* DO some check and Start Postman
*/
define( 'POST_SMTP_BASE', __FILE__ );
define( 'POST_SMTP_PATH', __DIR__ );
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
define( 'POST_SMTP_VER', '2.8.4' );
define( 'POST_SMTP_DB_VERSION', '1.0.1' );
define( 'POST_SMTP_ASSETS', plugin_dir_url( __FILE__ ) . 'assets/' );
$postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
$required_php_version = version_compare( PHP_VERSION, '5.6.0', '<' );
if ( $postman_smtp_exist || $required_php_version ) {
add_action( 'admin_init', 'post_smtp_plugin_deactivate' );
if ( $postman_smtp_exist ) {
add_action( 'admin_notices', 'post_smtp_plugin_admin_notice' );
}
if ( $required_php_version ) {
add_action( 'admin_notices', 'post_smtp_plugin_admin_notice_version' );
}
} else {
post_smtp_start( memory_get_usage() );
}
function post_smtp_plugin_deactivate() {
deactivate_plugins( plugin_basename( __FILE__ ) );
}
function post_smtp_plugin_admin_notice_version() {
echo '';
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] ); }
}
function post_smtp_plugin_admin_notice() {
echo 'Post SMTP plugin is a fork (twin brother) of the original Postman SMTP, you must disable Postman SMTP to use this plugin.
';
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] ); }
}
/**
* @todo
*/
function post_dismiss_not_configured() {
?>