list_table_primary_column WordPress Filter Hook

The list_table_primary_column hook is used to add or remove primary columns from a list table. This hook is used by core to add the checkbox column to the Posts list table, for example.

apply_filters( 'list_table_primary_column', string $default, string $context ) #

Filters the name of the primary column for the current list table.


Parameters

$default

(string)Column name default for the specific list table, e.g. 'name'.

$context

(string)Screen ID for specific list table, e.g. 'plugins'.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

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