class WP_Customize_Nav_Menus {}

In this article

Customize Nav Menus class.

Description

Implements menu management in the Customizer.

See also

Methods

NameDescription
WP_Customize_Nav_Menus::__constructConstructor.
WP_Customize_Nav_Menus::ajax_insert_auto_draft_postAjax handler for adding a new auto-draft post.
WP_Customize_Nav_Menus::ajax_load_available_itemsAjax handler for loading available menu items.
WP_Customize_Nav_Menus::ajax_search_available_itemsAjax handler for searching available menu items.
WP_Customize_Nav_Menus::available_item_typesReturns an array of all the available item types.
WP_Customize_Nav_Menus::available_items_templatePrints the HTML template used to render the add-menu-item frame.
WP_Customize_Nav_Menus::customize_dynamic_partial_argsFilters arguments for dynamic nav_menu selective refresh partials.
WP_Customize_Nav_Menus::customize_preview_enqueue_depsEnqueues scripts for the Customizer preview.
WP_Customize_Nav_Menus::customize_preview_initAdds hooks for the Customizer preview.
WP_Customize_Nav_Menus::customize_registerAdds the customizer settings and controls.
WP_Customize_Nav_Menus::enqueue_scriptsEnqueues scripts and styles for Customizer pane.
WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instancesExports any wp_nav_menu() calls during the rendering of any partials.
WP_Customize_Nav_Menus::export_preview_dataExports data from PHP to JS.
WP_Customize_Nav_Menus::filter_dynamic_setting_argsFilters a dynamic setting’s constructor args.
WP_Customize_Nav_Menus::filter_dynamic_setting_classAllows non-statically created settings to be constructed with custom WP_Customize_Setting subclass.
WP_Customize_Nav_Menus::filter_noncesAdds a nonce for customizing menus.
WP_Customize_Nav_Menus::filter_wp_nav_menuPrepares wp_nav_menu() calls for partial refresh.
WP_Customize_Nav_Menus::filter_wp_nav_menu_argsKeeps track of the arguments that are being passed to wp_nav_menu() .
WP_Customize_Nav_Menus::hash_nav_menu_argsHashes (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_postAdds a new `auto-draft` post.
WP_Customize_Nav_Menus::intval_base10Gets the base10 intval.
WP_Customize_Nav_Menus::load_available_items_queryPerforms the post_type and taxonomy queries for loading available menu items.
WP_Customize_Nav_Menus::make_auto_draft_status_previewableMakes the auto-draft status protected so that it can be queried.
WP_Customize_Nav_Menus::print_custom_links_available_menu_itemPrints the markup for available menu item custom links.
WP_Customize_Nav_Menus::print_post_type_containerPrints the markup for new menu items.
WP_Customize_Nav_Menus::print_templatesPrints the JavaScript templates used to render Menu Customizer components.
WP_Customize_Nav_Menus::render_nav_menu_partialRenders a specific menu via wp_nav_menu() using the supplied arguments.
WP_Customize_Nav_Menus::sanitize_nav_menus_created_postsSanitizes post IDs for posts created for nav menu items to be published.