plugin_includes . 'functions/admin/wpaf-welcome-page-content.php' ); } /** * Necessary styles. * * @param $hook * * @since 1.0 */ public static function wpaf_styles( $hook ) { global $wpaf_sub_menu; // Add style to the welcome page only. if ( $hook != $wpaf_sub_menu ) { return; } // Welcome page styles. wp_enqueue_style( 'wpaf_welcome_style', WPAF_Plugin::instance()->plugin_assets . 'admin/css/' . WPAF_Assets::wpaf_version_correct( 'dir' ) . 'welcome' . WPAF_Assets::wpaf_version_correct( 'suffix' ) . '.css', array(), WPAF_Plugin::PLUGIN_VERSION, 'all' ); } /** * Removes the menu item. * * @since 1.0 */ static function remove_menu_entry() { remove_submenu_page( 'index.php', 'wpaf_welcome_menu_page' ); } }