ms_user_list_site_actions
Filter HookDescription
Filters the action links displayed next the sites a user belongs to in the Network Admin 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 | 438 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$actions
|
An array of action links to be displayed. Default 'Edit', 'View'. |
int
|
$userblog_id
|
The site ID. |
Usage Examples
Basic Usage
<?php
// Hook into ms_user_list_site_actions
add_filter('ms_user_list_site_actions', 'my_custom_filter', 10, 2);
function my_custom_filter($actions, $userblog_id) {
// Your custom filtering logic here
return $actions;
}
Source Code Context
wp-admin/includes/class-wp-ms-users-list-table.php:438
- How this hook is used in WordPress core
<?php
433 * @since 3.1.0
434 *
435 * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'View'.
436 * @param int $userblog_id The site ID.
437 */
438 $actions = apply_filters( 'ms_user_list_site_actions', $actions, $site->userblog_id );
439
440 $action_count = count( $actions );
441
442 $i = 0;
443
PHP Documentation
<?php
/**
* Filters the action links displayed next the sites a user belongs to
* in the Network Admin Users list table.
*
* @since 3.1.0
*
* @param string[] $actions An array of action links to be displayed. Default 'Edit', 'View'.
* @param int $userblog_id The site ID.
*/
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.