manage_media_custom_column

ACTION wp-admin\includes\class-wp-media-list-table.php (ligne 714) github
Fires for each custom column in the Media list table. Custom columns are registered using the {@see 'manage_media_columns'} filter.

Paramètres

Entrée :
$column_name, $post->ID
Sortie :
@param string $column_name Name of the custom column.
@param int    $post_id     Attachment ID.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...