attachment_submitbox_misc_actions

ACTION wp-admin\includes\meta-boxes.php (ligne 460) github
Fires after the 'Uploaded on' section of the Save meta box in the attachment editing screen.

Paramètres

Entrée :
$post
Sortie :
@param WP_Post $post WP_Post object for the current attachment.

Utilisation

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

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

Actualités

Chargement des actualités...