Action hook 'manage_sites_custom_column'

in WP Core File wp-admin/includes/class-wp-ms-sites-list-table.php at line 610

View Source

manage_sites_custom_column

Action Hook
Description
Fires for each registered custom column in the Sites list table.

Hook Information

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

Hook Parameters

Type Name Description
string $column_name The name of the column to display.
int $blog_id The site ID.

Usage Examples

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

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

Source Code Context

wp-admin/includes/class-wp-ms-sites-list-table.php:610 - How this hook is used in WordPress core
<?php
 605  		 * @since 3.1.0
 606  		 *
 607  		 * @param string $column_name The name of the column to display.
 608  		 * @param int    $blog_id     The site ID.
 609  		 */
 610  		do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
 611  	}
 612  
 613  	/**
 614  	 * Generates the list table rows.
 615  	 *

PHP Documentation

<?php
/**
		 * Fires for each registered custom column in the Sites list table.
		 *
		 * @since 3.1.0
		 *
		 * @param string $column_name The name of the column to display.
		 * @param int    $blog_id     The site ID.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/class-wp-ms-sites-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.