WordPress开发者和主题制作者的搜索引擎



wp_nav_menu_container_allowedtags ›

Since3.0.0
已弃用n/a
apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' )
参数:
  • (array) $tags The acceptable HTML tags for use as menu containers. Default is array containing 'div' and 'nav'.
    Required: Yes
定义在:
文档:

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





源码

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