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_3285', 10, 2 ); function filter_function_name_3285( $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.
Where the hook is called
user_row_actions
wp-admin/includes/class-wp-users-list-table.php 460
$actions = apply_filters( 'user_row_actions', $actions, $user_object );