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



get_sidebar ›

Since2.8.0
已弃用n/a
do_action( 'get_sidebar', $name )
参数:
  • (string|null) $name Name of the specific sidebar file to use. null for the default sidebar.
    Required: Yes
定义在:
文档:

Fires before the sidebar template file is loaded.





源码

do_action( 'get_sidebar', $name );