get_template_part_{$slug}

最后更新于:2021-11-26 23:19:38

do_action( “get_template_part_{$slug}”, string $slug, string|null $name, array $args )

Fires before the specified template part file is loaded.

参数

$slug

(string)
The slug name for the generic template.

$name

(string|null)
The name of the specialized template.

$args

(array)
Additional arguments passed to the template.

源文件

文件: gc-includes/general-template.php

View on Trac