add_meta_boxes

ACTION wp-admin\includes\meta-boxes.php (ligne 1685) github
Fires after all built-in meta boxes have been added.
traduction française
Se déclenche une fois que toutes les boîtes méta intégrées ont été ajoutées.

Paramètres

Entrée :
$post_type, $post
Sortie :
@param string                    $object_type The type of the current object that meta boxes were added to.
@param WP_Post|WP_Comment|object $object      The post, comment, or link object. Type varies depending on

Utilisation

Ajouter des méta-boîtes personnalisées

Action pour ajouter des méta-boîtes.

admin content
add_action('add_meta_boxes', 'add_custom_metabox');
function add_custom_metabox() {
    add_meta_box('custom_box', 'Custom Info', 'render_custom_metabox', 'post');
}

Actualités

Chargement des actualités...