Core Class
View Source on Trac ↗
Core Class
WP_Customize_Nav_Menu_Setting
class WP_Customize_Nav_Menu_Setting
// Constructor: function Object() { [native code] } Customize Setting to represent a nav_menu.
Methods 11 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor.
Parameters: $manager: WP_Customize_Manager, $id: mixed, $args: array |
| value() array | Get the instance data for a given widget setting. |
| preview() bool | Handle previewing the setting. |
| filter_wp_get_nav_menus() WP_Term[] | Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed.
Parameters: $menus: mixed, $args: mixed |
| _sort_menus_by_orderby() int | Sort menu objects by the class-supplied orderby property.
Parameters: $menu1: mixed, $menu2: mixed |
| filter_wp_get_nav_menu_object() (object | Filters the wp_get_nav_menu_object() result to supply the previewed menu object.
Parameters: $menu_obj: mixed, $menu_id: mixed |
| filter_nav_menu_options() array | Filters the nav_menu_options option to include this menu's auto_add preference.
Parameters: $nav_menu_options: mixed |
| sanitize() (array | Sanitize an input.
Parameters: $value: mixed |
| update() (null | Create/update the nav_menu term for this setting.
Parameters: $value: mixed |
| filter_nav_menu_options_value() array | Updates a nav_menu_options array.
Parameters: $nav_menu_options: mixed, $menu_id: mixed, $auto_add: mixed |
| amend_customize_save_response() array | Export data for the JS client.
Parameters: $data: mixed |
Properties
| Property / Type | Description |
|---|---|
| $type mixed public | No description available. |
| $default mixed public | No description available. |
| $transport mixed public | No description available. |
| $term_id mixed public | No description available. |
| $previous_term_id mixed public | No description available. |
| $is_updated mixed public | No description available. |
| $update_status mixed public | No description available. |
| $update_error mixed public | No description available. |
| $_current_menus_sort_orderby mixed public | No description available. |
| $_widget_nav_menu_updates mixed public | No description available. |
Class Information
Since Version
4.3.0
Source File
wp-includes/customize/class-wp-customize-nav-menu-setting.php
Advertisement