Adding markup to column text in “Edit Pages” admin page

I was wondering if there is a way to hook into the column titles in the “All Posts” admin page to modify them. For instance, I would like to change “Post” to “<strong>Headline</strong>“. Are there any hooks that would let be do this without modifying the WordPress core code?

I have found some information about adding columns and modifying custom post type columns, but I could not find any information on modifying the columns that are standard in the “All Posts” screen.

Related posts

Leave a Reply

1 comment

  1. I found that there is a filter, manage_posts_columns (and a related manage_pages_columns), that lets you modify the column headers on the “All Posts” admin screen. Using this filter is pretty simple, as the filtering function takes in an associative array with the short name of the column as a key and the heading as the value. You just need to return a modified version of the array, and you’re set:

    function all_posts_modify_column($columns) {
        $columns['title'] = '<strong>Headline</strong>';
        return $columns;
    }
    add_filter('manage_posts_columns', 'all_posts_modify_column');