set_basename( false, __FILE__ ); } } else { /* * Freemius product credentials, from the Freemius Developer Dashboard * (Product → SDK Integration). The public key is not secret; never put the secret key here. */ defined( 'NOVOVERIFY_FS_ID' ) || define( 'NOVOVERIFY_FS_ID', '43109' ); defined( 'NOVOVERIFY_FS_PUBLIC_KEY' ) || define( 'NOVOVERIFY_FS_PUBLIC_KEY', 'pk_fc6c7c25f23ee12cae2655c526677' ); // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. if ( !function_exists( 'novoverify_fs' ) ) { /** * Freemius SDK instance. Returns null until the Freemius credentials are filled in. * * Freemius only talks to its servers after the site owner opts in, or when a * license is activated. Skipping the opt-in is always possible. * * @return Freemius|null */ function novoverify_fs() { global $novoverify_fs; if ( !isset( $novoverify_fs ) ) { if ( '' === NOVOVERIFY_FS_ID || '' === NOVOVERIFY_FS_PUBLIC_KEY ) { return null; } require_once __DIR__ . '/vendor/freemius/start.php'; $novoverify_fs = fs_dynamic_init( array( 'id' => NOVOVERIFY_FS_ID, 'slug' => 'novoverify', 'premium_slug' => 'novoverify-pro', 'type' => 'plugin', 'public_key' => NOVOVERIFY_FS_PUBLIC_KEY, 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_addons' => false, 'has_paid_plans' => true, 'is_org_compliant' => true, 'trial' => array( 'days' => 7, 'is_require_payment' => false, ), 'menu' => array( 'slug' => 'novoverify', 'first-path' => 'admin.php?page=novoverify', 'contact' => false, 'support' => false, ), 'is_live' => true, ) ); } return $novoverify_fs; } novoverify_fs(); // Signal that the SDK was initiated. do_action( 'novoverify_fs_loaded' ); } define( 'NOVOVERIFY_VERSION', '1.0.0' ); define( 'NOVOVERIFY_FILE', __FILE__ ); define( 'NOVOVERIFY_PATH', plugin_dir_path( __FILE__ ) ); define( 'NOVOVERIFY_URL', plugin_dir_url( __FILE__ ) ); define( 'NOVOVERIFY_BASENAME', plugin_basename( __FILE__ ) ); require_once NOVOVERIFY_PATH . 'includes/class-novoverify.php'; register_activation_hook( __FILE__, array('NovoVerify_Activator', 'activate') ); register_deactivation_hook( __FILE__, array('NovoVerify_Deactivator', 'deactivate') ); /** * Returns the main plugin instance. * * @return NovoVerify */ function novoverify() { return NovoVerify::instance(); } /** * Whether the Pro features are available (Pro package with an active license or trial). * * Always false in the free version, which does not contain the Pro code. * * @return bool */ function novoverify_is_pro() { return class_exists( 'NovoVerify_Pro', false ) && NovoVerify_Pro::is_active(); } novoverify(); // The Pro code lives only in the pro/ folder, which exists only in the Pro package. if ( is_readable( NOVOVERIFY_PATH . 'pro/bootstrap.php' ) ) { require_once NOVOVERIFY_PATH . 'pro/bootstrap.php'; } }