manage_pages_columns
Filter HookDescription
Filters the columns displayed in the Pages list table.Hook Information
File Location |
wp-admin/includes/class-wp-posts-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 728 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$posts_columns
|
An associative array of column headings. |
Usage Examples
Basic Usage
<?php
// Hook into manage_pages_columns
add_filter('manage_pages_columns', 'my_custom_filter', 10, 1);
function my_custom_filter($posts_columns) {
// Your custom filtering logic here
return $posts_columns;
}
Source Code Context
wp-admin/includes/class-wp-posts-list-table.php:728
- How this hook is used in WordPress core
<?php
723 *
724 * @since 2.5.0
725 *
726 * @param string[] $posts_columns An associative array of column headings.
727 */
728 $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
729 } else {
730
731 /**
732 * Filters the columns displayed in the Posts list table.
733 *
PHP Documentation
<?php
/**
* Filters the columns displayed in the Pages list table.
*
* @since 2.5.0
*
* @param string[] $posts_columns An associative array of column headings.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.