wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_wp_nav_menu › Filtr WordPress Hooks

Od3.9.0
Przestarzałyn/a
apply_filters( 'pre_wp_nav_menu', null, $args )
Parametry: (2)
  • (string|null) $output Nav menu output to short-circuit with. Default null.
    Wymagane: Tak
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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