wp_nav_menu_args filter-hookWP 3.0.0

Filters the arguments used to display a navigation menu.

Usage

add_filter( 'wp_nav_menu_args', 'wp_kama_nav_menu_args_filter' );

/**
 * Function for `wp_nav_menu_args` filter-hook.
 * 
 * @param array $args Array of wp_nav_menu() arguments.
 *
 * @return array
 */
function wp_kama_nav_menu_args_filter( $args ){

	// filter...
	return $args;
}
$args(array)
Array of wp_nav_menu() arguments.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wp_nav_menu()
wp_nav_menu_args
wp-includes/nav-menu-template.php 97
$args = apply_filters( 'wp_nav_menu_args', $args );

Where the hook is used in WordPress

wp-includes/class-wp-customize-nav-menus.php 1324
add_filter( 'wp_nav_menu_args', array( $this, 'filter_wp_nav_menu_args' ), 1000 );