wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_wp_nav_menu › WordPress Filter Hooks

Seit3.9.0
Veraltetn/v
apply_filters( 'pre_wp_nav_menu', null, $args )
Parameter: (2)
  • (string|null) $output Nav menu output to short-circuit with. Default null.
    Erforderlich: Ja
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

$nav_menu = apply_filters( 'pre_wp_nav_menu', null, $args );