wpseek.com
A WordPress-centric search engine for devs and theme authors
pre_wp_nav_menu › WordPress Filter Hooks
Since3.9.0
Deprecatedn/a
› apply_filters( 'pre_wp_nav_menu', null, $args )
Parameters: (2) |
|
Defined at: |
|
Codex: |
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.
Related Functions: wp_nav_menu, wp_get_nav_menus, register_nav_menu, is_nav_menu, wp_nav_menu_setup, wp_create_nav_menu
Related Hooks: wp_nav_menu, pre_wp_setup_nav_menu_item, wp_nav_menu_args, wp_get_nav_menus, wp_nav_menu_items