wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_wp_nav_menu › Les Filtres WordPress

Depuis3.9.0
Dépréciéen/a
apply_filters( 'pre_wp_nav_menu', null, $args )
Paramètres: (2)
  • (string|null) $output Nav menu output to short-circuit with. Default null.
    Requis: Oui
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Requis: Oui
Défini(e) dans:
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.





Source

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