get_template_part
最后更新于:2021-11-26 23:19:18
do_action( ‘get_template_part’, string $slug, string $name, string[] $templates, array $args )
Fires before a template part is loaded.
参数
- $slug
-
(string)
The slug name for the generic template. - $name
-
(string)
The name of the specialized template. - $templates
-
(string[])
Array of template files to search for, in order. - $args
-
(array)
Additional arguments passed to the template.
源文件
文件: gc-includes/general-template.php