submitpage_box

ACTION wp-admin\edit-form-advanced.php (ligne 699) github
Fires before meta boxes with 'side' context are output for the 'page' post type. The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.

Paramètres

Entrée :
$post
Sortie :
@param WP_Post $post Post object.

Utilisation

// Ajouter une fonction au hook action 'submitpage_box'
add_action('submitpage_box', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($post) {
    // Votre code ici
    error_log('Hook submitpage_box déclenché');
}

Actualités

Chargement des actualités...