hooks(); } /** * Hooks * @since 1.0.0 */ public function hooks() { add_action( 'admin_menu', array( $this, 'license_menu' ) ); add_action( 'admin_notices', array( $this, 'admin_notices' ) ); } /** * Checks if our extensions are installed * */ function has_extension() { if ( is_plugin_active('wpgetapi-woocommerce/wpgetapi-woocommerce.php' ) || is_plugin_active('wpgetapi-post-import/wpgetapi-post-import.php' ) || is_plugin_active('wpgetapi-api-importer/wpgetapi-api-importer.php' ) || is_plugin_active('wpgetapi-oauth/wpgetapi-oauth.php' ) || is_plugin_active('wpgetapi-extras/wpgetapi-extras.php' ) ){ return true; } } /** * Adds the plugin license page to the admin menu. * * @return void */ function license_menu() { add_submenu_page( 'wpgetapi_setup', __( 'Plugin Licenses' ), __( 'Licenses' ), 'manage_options', WPGETAPILICENSEPAGE, array( $this, 'license_page' ) ); } function license_page() { add_settings_section( 'wpgetapi_licenses_section', __( '' ), array( $this, 'license_key_settings_section' ), WPGETAPILICENSEPAGE ); ?>

has_extension() ) submit_button(); ?>

License fields will appear here if you have purchased any of our premium plugin extensions.
Enter your license keys to receive updates for your premium plugins.

View Premium Extensions

Activated successfully.