apply_filters( ‘wp_nav_menu_container_allowedtags’, string[] $tags )

In this article

Filters the list of HTML tags that are valid for use as menu containers.

Parameters

$tagsstring[]
The acceptable HTML tags for use as menu containers.
Default is array containing 'div' and 'nav'.

Source

$allowed_tags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' ) );

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.