Fires immediately after the label inside the 'Template' section of the 'Page Attributes' meta box.
$template, $post
Sortie :
@param string|false $template The template used for the current post. @param WP_Post $post The current post.
// Ajouter une fonction au hook action 'page_attributes_meta_box_template'
add_action('page_attributes_meta_box_template', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($template, $post) {
// Votre code ici
error_log('Hook page_attributes_meta_box_template déclenché');
}
Chargement des actualités...