pre_wp_nav_menu

Advertisement

Summery Summery

Filters whether to short-circuit the wp_nav_menu() output.

Syntax Syntax

apply_filters( 'pre_wp_nav_menu', string|null $output, stdClass $args )

Description Description

Returning a non-null value to the filter will short-circuit wp_nav_menu(), echoing that value if $args->echo is true, returning that value otherwise.

Parameters Parameters

$output

Nav menu output to short-circuit with. Default null.

$args

An object containing wp_nav_menu() arguments.

Source Source

File: wp-includes/nav-menu-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.

See also See also

Advertisement

Leave a Reply