page_attributes_meta_box_template хук-событиеWP 4.4.0

Fires immediately after the label inside the 'Template' section of the 'Page Attributes' meta box.

Использование

add_action( 'page_attributes_meta_box_template', 'wp_kama_page_attributes_meta_box_template_action', 10, 2 );

/**
 * Function for `page_attributes_meta_box_template` action-hook.
 * 
 * @param string|false $template The template used for the current post.
 * @param WP_Post      $post     The current post.
 *
 * @return void
 */
function wp_kama_page_attributes_meta_box_template_action( $template, $post ){

	// action...
}
$template(строка|false)
The template used for the current post.
$post(WP_Post)
The current post.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

page_attributes_meta_box()
page_attributes_meta_box_template
wp-admin/includes/meta-boxes.php 1049
do_action( 'page_attributes_meta_box_template', $template, $post );

Где используется хук в WordPress

Использование не найдено.