Action hook 'manage_pages_custom_column'

in WP Core File wp-admin/includes/class-wp-posts-list-table.php at line 1378

View Source

manage_pages_custom_column

Action Hook
Description
Fires in each custom column on the Posts list table. This hook only fires if the current post type is hierarchical, such as pages.

Hook Information

File Location wp-admin/includes/class-wp-posts-list-table.php View on GitHub
Hook Type Action
Line Number 1378

Hook Parameters

Type Name Description
string $column_name The name of the column to display.
int $post_id The current post ID.

Usage Examples

Basic Usage
<?php
// Hook into manage_pages_custom_column
add_action('manage_pages_custom_column', 'my_custom_function', 10, 2);

function my_custom_function($column_name, $post_id) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-posts-list-table.php:1378 - How this hook is used in WordPress core
<?php
1373  			 * @since 2.5.0
1374  			 *
1375  			 * @param string $column_name The name of the column to display.
1376  			 * @param int    $post_id     The current post ID.
1377  			 */
1378  			do_action( 'manage_pages_custom_column', $column_name, $post->ID );
1379  		} else {
1380  
1381  			/**
1382  			 * Fires in each custom column in the Posts list table.
1383  			 *

PHP Documentation

<?php
/**
			 * Fires in each custom column on the Posts list table.
			 *
			 * This hook only fires if the current post type is hierarchical,
			 * such as pages.
			 *
			 * @since 2.5.0
			 *
			 * @param string $column_name The name of the column to display.
			 * @param int    $post_id     The current post ID.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.