ms_user_row_actions
Filters the action links displayed under each user in the Network Admin Users list table.
Usage
add_filter( 'ms_user_row_actions', 'wp_kama_ms_user_row_actions_filter', 10, 2 );
/**
* Function for `ms_user_row_actions` filter-hook.
*
* @param string[] $actions An array of action links to be displayed.
* @param WP_User $user WP_User object.
*
* @return string[]
*/
function wp_kama_ms_user_row_actions_filter( $actions, $user ){
// filter...
return $actions;
}
- $actions(string[])
- An array of action links to be displayed.
Default: 'Edit', 'Delete' - $user(WP_User)
- WP_User object.
Changelog
| Since 3.2.0 | Introduced. |
Where the hook is called
ms_user_row_actions
wp-admin/includes/class-wp-ms-users-list-table.php 563
$actions = apply_filters( 'ms_user_row_actions', $actions, $user );