WP_Customize_Nav_Menus::filter_wp_nav_menu

SummerySummery

Prepares wp_nav_menu() calls for partial refresh.

Syntax

WP_Customize_Nav_Menus::filter_wp_nav_menu( string $nav_menu_content, object $args )

DescriptionDescription

Injects attributes into container element.

ParametersParameters

$nav_menu_content

(string) (Required) The HTML content for the navigation menu.

$args

(object) (Required) An object containing wp_nav_menu() arguments.

ReturnReturn

(string) Nav menu HTML with selective refresh attributes added if partial can be refreshed.

SourceSource

File: wp-includes/class-wp-customize-nav-menus.php


			

ChangelogChangelog

Changelog
Version Description
4.3.0 Introduced.

See alsoSee also

Scroll to Top