manage_users_custom_column
Filter HookDescription
Handles the default column output.Hook Information
File Location |
wp-admin/includes/class-wp-ms-users-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 470 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_User
|
$item
|
The current WP_User object. |
string
|
$column_name
|
The current column name. |
Usage Examples
Basic Usage
<?php
// Hook into manage_users_custom_column
add_filter('manage_users_custom_column', 'my_custom_filter', 10, 2);
function my_custom_filter($item, $column_name) {
// Your custom filtering logic here
return $item;
}
Source Code Context
wp-admin/includes/class-wp-ms-users-list-table.php:470
- How this hook is used in WordPress core
<?php
465 public function column_default( $item, $column_name ) {
466 // Restores the more descriptive, specific name for use within this method.
467 $user = $item;
468
469 /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
470 $column_output = apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
471
472 /**
473 * Filters the display output of custom columns in the Network Users list table.
474 *
475 * @since 6.8.0
PHP Documentation
<?php
/**
* Handles the default column output.
*
* @since 4.3.0
* @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support.
*
* @param WP_User $item The current WP_User object.
* @param string $column_name The current column name.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/class-wp-ms-users-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.