Fires after all built-in meta boxes have been added, contextually for the given post type. The dynamic portion of the hook name, `$post_type`, refers to the post type of the post, or the object type (comment, link). Possible hook names include: - `add_meta_boxes_post` - `add_meta_boxes_page` - `add_meta_boxes_attachment` - `add_meta_boxes_comment` - `add_meta_boxes_link`
$post
Sortie :
@param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on
// Ajouter une fonction au hook action 'add_meta_boxes_{$post_type}'
add_action('add_meta_boxes_{$post_type}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($post) {
// Votre code ici
error_log('Hook add_meta_boxes_{$post_type} déclenché');
}
Chargement des actualités...