page_attributes_meta_box_template

動作鉤子
do_action( 'page_attributes_meta_box_template', $template, $post )
引數
  • (string|false) $template The template used for the current post.
    Required:
  • (WP_Post) $post The current post.
    Required:
定義位置
相關勾子
page_attributes_misc_attributesprint_media_templatespre_get_block_templatepre_get_block_templatespage_attributes_dropdown_pages_args
相關方法
page_attributes_meta_boxget_attachment_templatewp_print_media_templates_resolve_home_block_templateget_author_templateget_tag_template
引入
4.4.0
棄用
-

page_attributes_meta_box_template。這個動作鉤子允許開發者在編輯頁面的”頁面屬性”元框中新增額外內容。

在‘頁面屬性’元框的‘模板’部分的標籤之後立即觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'page_attributes_meta_box_template', $template, $post );
do_action( 'page_attributes_meta_box_template', $template, $post );
do_action( 'page_attributes_meta_box_template', $template, $post );

常見問題

FAQs
檢視更多 >