user_row_actions filter-hook . WP 2.8.0
Filters the action links displayed under each user in the Users list table.
Usage
add_filter( 'user_row_actions', 'filter_function_name_5776', 10, 2 ); function filter_function_name_5776( $actions, $user_object ){ // filter... return $actions; }
- $actions(string[])
- An array of action links to be displayed.
Default: 'Edit', 'Delete' for single site, and 'Edit', 'Remove' for Multisite - $user_object(WP_User)
- WP_User object for the currently listed user.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
user_row_actions
wp-admin/includes/class-wp-users-list-table.php 483
$actions = apply_filters( 'user_row_actions', $actions, $user_object );