page_attributes_meta_box_template
do_action( ‘page_attributes_meta_box_template’, string $template , WP_Post $post )
动作钩子::在“页面属性”元框的“模板”部分中的标签后立即激发。
Action Hook: Fires immediately after the label inside the ‘Template’ section of the ‘Page Attributes’ meta box.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$template | (string) | 用于当前帖子的模板。 |
$post | (WP_Post) | 现在的职位。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-admin/includes/meta-boxes.php:972 | 1 | 0 |
page_attributes_meta_box_template 为WP2原创文章,链接:https://www.wp2.cn/hook/page_attributes_meta_box_template/