Render a specific menu via wp_nav_menu() using the supplied arguments.
WP_Customize_Nav_Menus::customize_preview_init
Add hooks for the Customizer preview.
WP_Customize_Nav_Menus::make_auto_draft_status_previewable
Make the auto-draft status protected so that it can be queried.
WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts
Sanitize post IDs for posts created for nav menu items to be published.
Advertisement
WP_Customize_Nav_Menus::save_nav_menus_created_posts
Publish the auto-draft posts that were created for nav menu items.
WP_Customize_Nav_Menus::filter_wp_nav_menu_args
Keep track of the arguments that are being passed to wp_nav_menu().
WP_Customize_Nav_Menus::filter_wp_nav_menu
Prepares wp_nav_menu() calls for partial refresh.
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.
Advertisement
WP_Customize_Nav_Menus::customize_preview_enqueue_deps
Enqueue scripts for the Customizer preview.
WP_Customize_Nav_Menus::export_preview_data
Exports data from PHP to JS.
WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances
Export any wp_nav_menu() calls during the rendering of any partials.
WP_Customize_Nav_Menus::ajax_insert_auto_draft_post
Ajax handler for adding a new auto-draft post.
Advertisement
WP_Customize_Nav_Menus::print_templates
Print the JavaScript templates used to render Menu Customizer components.
WP_Customize_Nav_Menus::available_items_template
Print the HTML template used to render the add-menu-item frame.
WP_Customize_Nav_Menus::__construct
Constructor.