YANGRA_CONDITIONAL_FS_ID, 'slug' => 'yangra-conditional', 'premium_slug' => 'yangra-conditional-pro', 'type' => 'plugin', 'public_key' => YANGRA_CONDITIONAL_FS_PUBLIC_KEY, 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_addons' => false, 'has_paid_plans' => true, 'is_org_compliant' => true, 'anonymous_mode' => true, 'trial' => array( 'days' => 14, 'is_require_payment' => true, ), 'menu' => array( 'slug' => 'yangra-conditional', 'contact' => false, 'support' => false, ), 'is_live' => true, ) ); } return $yangra_conditional_fs; } if ( yangra_conditional_fs() ) { // The cleanup runs from here, not uninstall.php: when uninstall.php exists, // WordPress runs it instead of Freemius's uninstall hook. yangra_conditional_fs()->add_action( 'after_uninstall', 'yangra_conditional_uninstall_cleanup' ); do_action( 'yangra_conditional_fs_loaded' ); } } if ( !function_exists( 'yangra_conditional_uninstall_cleanup' ) ) { /** * Removes everything the plugin created, in both the Free and the Pro build. * * Freemius calls it after the plugin is uninstalled, unless the other build * (Free or Pro) is still active. Without Freemius (local development) it * isn't called on uninstall; run it with * `wp eval 'yangra_conditional_uninstall_cleanup();'`. * * @return void */ function yangra_conditional_uninstall_cleanup() { ( new \Yangra\Conditional\Uninstall() )->run(); } }