Action: um_role_row_actions

do_action( 'um_role_row_actions', $actions, $id )

Filters the role actions in WP ListTable Ultimate Member > Roles screen.

Parameters:
Name Type Description
$actions array

Action links.

$id string

Role key.

Since:
  • 2.6.3
Source:
Example

Add custom action to role's row.

function my_custom_um_role_row_actions( $actions, $id ) {
    $actions['{action_key}'] = "<a href="{action_link}">Action Title</a>";
    return $actions;
}
add_action( 'um_role_row_actions', 'my_custom_um_role_row_actions', 10, 2 );