Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-screen.php: WP_Screen::get() | Fetches a screen object. |
wp-includes/plugin.php: add_filter() | Hook a function or method to a specific filter action. |
Render screen options for Menus.
File: wp-includes/customize/class-wp-customize-nav-menus-panel.php
public function render_screen_options() { // Adds the screen options. require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' ); // Display screen options. $screen = WP_Screen::get( 'nav-menus.php' ); $screen->render_screen_options( array( 'wrap' => false ) ); }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_nav_menus_panel/render_screen_options