Used By
Used By | Description |
---|---|
wp-includes/nav-menu-template.php: wp_nav_menu() | Displays a navigation menu. |
Filters whether to short-circuit the wp_nav_menu() output.
Returning a non-null value from the filter will short-circuit wp_nav_menu(), echoing that value if $args->echo is true, returning that value otherwise.
(string|null) Nav menu output to short-circuit with. Default null.
(stdClass) An object containing wp_nav_menu() arguments.
Version | Description |
---|---|
3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_nav_menu