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`
$posts_columns
Sortie :
@param string[] $posts_columns An associative array of column headings.
// 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;
}
Chargement des actualités...