edit_form_top

ACTION wp-admin\edit-form-advanced.php (ligne 519) github
Fires at the beginning of the edit form. At this point, the required hidden fields and nonces have already been output.

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...