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.


Top ↑

Source

File: wp-admin/includes/meta-boxes.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.