Fires after the 'Uploaded on' section of the Save meta box in the attachment editing screen.
$post
Sortie :
@param WP_Post $post WP_Post object for the current attachment.
// 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é');
}
Chargement des actualités...