manage_pages_columns WordPress Filter Hook

The manage_pages_columns hook allows you to add or remove columns from the manage pages screen in the Wordpress admin area. This hook is typically used to add custom columns to the page list table.

apply_filters( 'manage_pages_columns', string[] $post_columns ) #

Filters the columns displayed in the Pages list table.


Parameters

$post_columns

(string[])An associative array of column headings.


Top ↑

More Information

  • Applied to the list of columns to print on the manage Pages Screen. Filter function argument/return value is an associative array where the element key is the name of the column, and the value is the header text for that column.
  • See also the action hook manage_pages_custom_column, which alters the column information for each page in the edit table.

Top ↑

Built-in Column Types

Note: Listed in order of appearance. By default, all columns supported by the post type are shown.

  • cb Checkbox for bulk actions.
  • title
    Post title.

    Includes “edit”, “quick edit”, “trash” and “view” links. If $mode (set from $_REQUEST['mode']) is ‘excerpt’, a post excerpt is included between the title and links.

  • author Post author.
  • author Post author.
  • categories Categories the post belongs to.
  • tags Tags for the post.
  • comments Number of pending comments.
  • date The date and publish status of the post.

Top ↑

Source

File: wp-admin/includes/class-wp-posts-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.