Fires before meta boxes with 'side' context are output for all post types other than 'page'. The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
$post
Sortie :
@param WP_Post $post Post object.
// Ajouter une fonction au hook action 'submitpost_box'
add_action('submitpost_box', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($post) {
// Votre code ici
error_log('Hook submitpost_box déclenché');
}
Chargement des actualités...