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



get_template_part ›

Since5.2.0
已弃用n/a
do_action( 'get_template_part', $slug, $name, $templates )
参数: (3)
  • (string) $slug The slug name for the generic template.
    Required: Yes
  • (string) $name The name of the specialized template.
    Required: Yes
  • (string[]) $templates Array of template files to search for, in order.
    Required: Yes
定义在:
文档:

Fires before a template part is loaded.





源码

do_action( 'get_template_part', $slug, $name, $templates );