page_attributes_meta_box_template WordPress Action Hook
The page_attributes_meta_box_template hook is used to add custom content to the page attributes meta box in the admin area. This hook allows you to add extra fields to the meta box, or to modify the default fields.
do_action( 'page_attributes_meta_box_template', string|false $template , WP_Post $post ) #
Fires immediately after the label inside the ‘Template’ section of the ‘Page Attributes’ meta box.
Parameters
- $template
(string|false)The template used for the current post.
- $post
(WP_Post)The current post.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |