wphooks.info - wp_nav_menu_args

wp_nav_menu_args

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/nav-menu-template.php:
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
	/**
	 * Filters the arguments used to display a navigation menu.
	 *
	 * @since 3.0.0
	 *
	 * @see wp_nav_menu()
	 *
	 * @param array $args Array of wp_nav_menu() arguments.
	 */
	$args = apply_filters( 'wp_nav_menu_args', $args );
	$args = (object) $args;

	/**
	 * Filters whether to short-circuit the wp_nav_menu() output.
	 *
	 * Returning a non-null value to the filter will short-circuit
	 * wp_nav_menu(), echoing that value if $args->echo is true,
	 * returning that value otherwise.
	 *