set_basename( false, __FILE__ ); return; } if ( !function_exists( 'adfoxly_wa_fs' ) ) { // Create a helper function for easy SDK access. function adfoxly_wa_fs() { global $adfoxly_wa_fs ; if ( !isset( $adfoxly_wa_fs ) ) { // Include Freemius SDK. require_once dirname( __FILE__ ) . '/includes/freemius/start.php'; $adfoxly_wa_fs = fs_dynamic_init( array( 'id' => '2534', 'slug' => 'adfoxly', 'type' => 'plugin', 'public_key' => 'pk_495ebb5235d61f2d62335055dd443', 'is_premium' => false, 'premium_suffix' => 'PRO', 'has_addons' => false, 'has_paid_plans' => true, 'trial' => array( 'days' => 7, 'is_require_payment' => false, ), 'has_affiliation' => 'selected', 'menu' => array( 'slug' => 'adfoxly', 'support' => false, ), 'is_live' => true, ) ); } return $adfoxly_wa_fs; } // Init Freemius. adfoxly_wa_fs(); // Signal that SDK was initiated. do_action( 'adfoxly_wa_fs_loaded' ); adfoxly_wa_fs()->override_i18n( array( 'symbol_arrow-left' => '', 'symbol_arrow-right' => '', ) ); function adfoxly_wa_fs_custom_connect_message_on_update( $message, $user_first_name, $plugin_title, $user_login, $site_link, $freemius_link ) { return sprintf( __( 'Hey %1$s' ) . ',
' . __( 'Please help us improve %2$s! If you opt-in, some data about your usage of %2$s will be sent to %5$s. If you skip this, that\'s okay! %2$s will still work just fine.', 'adfoxly' ), $user_first_name, '' . $plugin_title . '', '' . $user_login . '', $site_link, $freemius_link ); } adfoxly_wa_fs()->add_filter( 'connect_message_on_update', 'adfoxly_wa_fs_custom_connect_message_on_update', 10, 6 ); define( 'ADFOXLY_VERSION', '1.3.50' ); /** * The code that runs during plugin activation. * This action is documented in includes/class-adfoxly-activator.php */ if ( !function_exists( 'activate_adfoxly' ) ) { function activate_adfoxly() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-adfoxly-activator.php'; adfoxly_Activator::activate(); } } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-adfoxly-deactivator.php */ if ( !function_exists( 'deactivate_adfoxly' ) ) { function deactivate_adfoxly() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-adfoxly-deactivator.php'; adfoxly_Deactivator::deactivate(); } } register_activation_hook( __FILE__, 'activate_adfoxly' ); register_deactivation_hook( __FILE__, 'deactivate_adfoxly' ); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-adfoxly.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_adfoxly() { $plugin = new Adfoxly(); $plugin->run(); } run_adfoxly(); }