manage_{$post_type}_posts_columns

FILTER wp-admin\includes\class-wp-posts-list-table.php (ligne 755) github
Filters the columns displayed in the Posts list table for a specific post type. The dynamic portion of the hook name, `$post_type`, refers to the post type slug. Possible hook names include:  - `manage_post_posts_columns`  - `manage_page_posts_columns`

Paramètres

Entrée :
$posts_columns
Sortie :
@param string[] $posts_columns An associative array of column headings.

Utilisation

// Modifier la valeur avec le filtre 'manage_{$post_type}_posts_columns'
add_filter('manage_{$post_type}_posts_columns', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($posts_columns) {
    // Modifier la valeur
    return $posts_columns;
}

Actualités

Chargement des actualités...