WP_Customize_Nav_Menu_Setting::filter_nav_menu_options_value

SummerySummery

Updates a nav_menu_options array.

Syntax

WP_Customize_Nav_Menu_Setting::filter_nav_menu_options_value( array $nav_menu_options, int $menu_id, bool $auto_add )

ParametersParameters

$nav_menu_options

(array) (Required) Array as returned by get_option( 'nav_menu_options' ).

$menu_id

(int) (Required) The term ID for the given menu.

$auto_add

(bool) (Required) Whether to auto-add or not.

ReturnReturn

(array) (Maybe) modified nav_menu_otions array.

SourceSource

File: wp-includes/customize/class-wp-customize-nav-menu-setting.php


			

ChangelogChangelog

Changelog
Version Description
4.3.0 Introduced.

See alsoSee also

Scroll to Top