manage_{$screen->id}_columns WordPress Filter Hook

The manage_{$screen->id}_columns hook is used to manage the columns on a particular screen. This hook is typically used to add or remove columns, or to reorder the columns.

apply_filters( "manage_{$screen->id}_columns", string[] $columns ) #

Filters the column headers for a list table on a specific screen.


Description

The dynamic portion of the hook name, $screen->id, refers to the ID of a specific screen. For example, the screen ID for the Posts list table is edit-post, so the filter for that screen would be manage_edit-post_columns.


Top ↑

Parameters

$columns

(string[])The column header labels keyed by column ID.


Top ↑

Source

File: wp-admin/includes/screen.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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.