page_attributes_meta_box_template

ACTION wp-admin\includes\meta-boxes.php (ligne 1049) github
Fires immediately after the label inside the 'Template' section of the 'Page Attributes' meta box.

Paramètres

Entrée :
$template, $post
Sortie :
@param string|false $template The template used for the current post.
@param WP_Post      $post     The current post.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...