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



get_template_part › WordPress动作钩子

Since5.5.0
已弃用n/a
› do_action( 'get_template_part', $slug, $name, $templates, $args )
参数: (4)
  • () slug The slug name for the generic template.
    Required: Yes
  • () name The name of the specialized template or an empty string if there is none.
    Required: Yes
  • () templates Array of template files to search for, in order.
    Required: Yes
  • () args Additional arguments passed to the template.
    Required: Yes
定义在:
文档:

Fires before an attempt is made to locate and load a template part.





源码

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