Fires for each custom column in the Media list table. Custom columns are registered using the {@see 'manage_media_columns'} filter.
$column_name, $post->ID
Sortie :
@param string $column_name Name of the custom column. @param int $post_id Attachment ID.
// Ajouter une fonction au hook action 'manage_media_custom_column'
add_action('manage_media_custom_column', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($column_name, $post->ID) {
// Votre code ici
error_log('Hook manage_media_custom_column déclenché');
}
Chargement des actualités...