A WordPress-centric search engine for devs and theme authors



wp_nav_menu_container_allowedtags ›

Since3.0.0
Deprecatedn/a
apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' )
Parameters:
  • (array) $tags The acceptable HTML tags for use as menu containers. Default is array containing 'div' and 'nav'.
    Required: Yes
Defined at:
Codex:

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





Source

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