Customize Nav Menus class.
Description
Implements menu management in the Customizer.
See also
Methods
Name | Description |
---|---|
WP_Customize_Nav_Menus::__construct | Constructor. |
WP_Customize_Nav_Menus::ajax_insert_auto_draft_post | Ajax handler for adding a new auto-draft post. |
WP_Customize_Nav_Menus::ajax_load_available_items | Ajax handler for loading available menu items. |
WP_Customize_Nav_Menus::ajax_search_available_items | Ajax handler for searching available menu items. |
WP_Customize_Nav_Menus::available_item_types | Returns an array of all the available item types. |
WP_Customize_Nav_Menus::available_items_template | Prints the HTML template used to render the add-menu-item frame. |
WP_Customize_Nav_Menus::customize_dynamic_partial_args | Filters arguments for dynamic nav_menu selective refresh partials. |
WP_Customize_Nav_Menus::customize_preview_enqueue_deps | Enqueues scripts for the Customizer preview. |
WP_Customize_Nav_Menus::customize_preview_init | Adds hooks for the Customizer preview. |
WP_Customize_Nav_Menus::customize_register | Adds the customizer settings and controls. |
WP_Customize_Nav_Menus::enqueue_scripts | Enqueues scripts and styles for Customizer pane. |
WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances | Exports any wp_nav_menu() calls during the rendering of any partials. |
WP_Customize_Nav_Menus::export_preview_data | Exports data from PHP to JS. |
WP_Customize_Nav_Menus::filter_dynamic_setting_args | Filters a dynamic setting’s constructor args. |
WP_Customize_Nav_Menus::filter_dynamic_setting_class | Allows non-statically created settings to be constructed with custom WP_Customize_Setting subclass. |
WP_Customize_Nav_Menus::filter_nonces | Adds a nonce for customizing menus. |
WP_Customize_Nav_Menus::filter_wp_nav_menu | Prepares wp_nav_menu() calls for partial refresh. |
WP_Customize_Nav_Menus::filter_wp_nav_menu_args | Keeps track of the arguments that are being passed to wp_nav_menu() . |
WP_Customize_Nav_Menus::hash_nav_menu_args | Hashes (hmac) the nav menu arguments to ensure they are not tampered with when submitted in the Ajax request. |
WP_Customize_Nav_Menus::insert_auto_draft_post | Adds a new `auto-draft` post. |
WP_Customize_Nav_Menus::intval_base10 | Gets the base10 intval. |
WP_Customize_Nav_Menus::load_available_items_query | Performs the post_type and taxonomy queries for loading available menu items. |
WP_Customize_Nav_Menus::make_auto_draft_status_previewable | Makes the auto-draft status protected so that it can be queried. |
WP_Customize_Nav_Menus::print_custom_links_available_menu_item | Prints the markup for available menu item custom links. |
WP_Customize_Nav_Menus::print_post_type_container | Prints the markup for new menu items. |
WP_Customize_Nav_Menus::print_templates | Prints the JavaScript templates used to render Menu Customizer components. |
WP_Customize_Nav_Menus::render_nav_menu_partial | Renders a specific menu via wp_nav_menu() using the supplied arguments. |
WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts | Sanitizes post IDs for posts created for nav menu items to be published. |