true, 'is_free' => true, ); } /** * Checks whether the Product is active. * If Jetpack plugin is active, then Extras will be inactive. * * @return boolean */ public static function is_active() { return static::is_jetpack_plugin_active(); } /** * Checks whether the plugin is installed * If Jetpack plugin is installed, then Extras will be inactive. * * @return boolean */ public static function is_plugin_installed() { return static::is_jetpack_plugin_installed(); } /** * Get the URL where the user manages the product * * @return ?string */ public static function get_manage_url() { return admin_url( 'admin.php?page=jetpack' ); } /** * Activates the Jetpack plugin * * @return null|WP_Error Null on success, WP_Error on invalid file. */ public static function activate_plugin() { return activate_plugin( static::get_installed_plugin_filename( 'jetpack' ) ); } }