manage_users-network_custom_column
Filter HookDescription
Filters the display output of custom columns in the Network Users list table.Hook Information
File Location |
wp-admin/includes/class-wp-ms-users-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 481 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$output
|
Custom column output. Default empty. |
string
|
$column_name
|
Name of the custom column. |
int
|
$user_id
|
ID of the currently-listed user. |
Usage Examples
Basic Usage
<?php
// Hook into manage_users-network_custom_column
add_filter('manage_users-network_custom_column', 'my_custom_filter', 10, 3);
function my_custom_filter($output, $column_name, $user_id) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-admin/includes/class-wp-ms-users-list-table.php:481
- How this hook is used in WordPress core
<?php
476 *
477 * @param string $output Custom column output. Default empty.
478 * @param string $column_name Name of the custom column.
479 * @param int $user_id ID of the currently-listed user.
480 */
481 echo apply_filters( 'manage_users-network_custom_column', $column_output, $column_name, $user->ID );
482 }
483
484 /**
485 * Generates the list table rows.
486 *
PHP Documentation
<?php
/**
* Filters the display output of custom columns in the Network Users list table.
*
* @since 6.8.0
*
* @param string $output Custom column output. Default empty.
* @param string $column_name Name of the custom column.
* @param int $user_id ID of the currently-listed user.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-admin/includes/class-wp-ms-users-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.