Méthode |
Description |
|
__construct ( object $manager ) |
Constructor. |
|
ajax_insert_auto_draft_post ( ) |
Ajax handler for adding a new auto-draft post. |
|
ajax_load_available_items ( ) |
Ajax handler for loading available menu items. |
|
ajax_search_available_items ( ) |
Ajax handler for searching available menu items. |
|
available_item_types ( ) : array |
Return an array of all the available item types. |
|
available_items_template ( ) |
Print the html template used to render the add-menu-item frame. |
|
customize_dynamic_partial_args ( array | false $partial_args, string $partial_id ) : array |
Filters arguments for dynamic nav_menu selective refresh partials. |
|
customize_preview_enqueue_deps ( ) |
Enqueue scripts for the Customizer preview. |
|
customize_preview_init ( ) |
Add hooks for the Customizer preview. |
|
customize_register ( ) |
Add the customizer settings and controls. |
|
enqueue_scripts ( ) |
Enqueue scripts and styles for Customizer pane. |
|
export_partial_rendered_nav_menu_instances ( array $response ) : array |
Export any wp_nav_menu() calls during the rendering of any partials. |
|
export_preview_data ( ) |
Exports data from PHP to JS. |
|
filter_dynamic_setting_args ( false | array $setting_args, string $setting_id ) : array | false |
Filters a dynamic setting's constructor args. |
|
filter_dynamic_setting_class ( string $setting_class, string $setting_id, array $setting_args ) : string |
Allow non-statically created settings to be constructed with custom WP_Customize_Setting subclass. |
|
filter_nonces ( array $nonces ) : array |
Adds a nonce for customizing menus. |
|
filter_wp_nav_menu ( string $nav_menu_content, object $args ) : null |
Prepares wp_nav_menu() calls for partial refresh. |
|
filter_wp_nav_menu_args ( array $args ) : array |
Keep track of the arguments that are being passed to wp_nav_menu(). |
|
hash_nav_menu_args ( array $args ) : string |
Hashes (hmac) the nav menu arguments to ensure they are not tampered with when
submitted in the Ajax request. |
|
insert_auto_draft_post ( array $postarr ) : WP_Post | WP_Error |
Add a new auto-draft post. |
|
intval_base10 ( mixed $value ) : integer |
Get the base10 intval. |
|
load_available_items_query ( string $type = 'post_type', string $object = 'page', integer $page ) : WP_Error | array |
Performs the post_type and taxonomy queries for loading available menu items. |
|
make_auto_draft_status_previewable ( ) |
Make the auto-draft status protected so that it can be queried. |
|
print_templates ( ) |
Print the JavaScript templates used to render Menu Customizer components. |
|
render_nav_menu_partial ( WP_Customize_Partial $partial, array $nav_menu_args ) : string | false |
Render a specific menu via wp_nav_menu() using the supplied arguments. |
|
sanitize_nav_menus_created_posts ( array $value ) |
Sanitize post IDs for auto-draft posts created for nav menu items to be published. |
|
save_nav_menus_created_posts ( WP_Customize_Setting $setting ) |
Publish the auto-draft posts that were created for nav menu items. |
|
search_available_items_query ( array $args = [] ) : array |
Performs post queries for available-item searching. |
|