apply_filters( 'um_admin_user_actions_hook', $actions, $user_id ) → {array}
Filters users actions list in Ultimate Member frontend.
Parameters:
Name | Type | Description |
---|---|---|
$actions |
array | CPT keys. |
$user_id |
int | User ID. |
- Since:
- 1.3.x
- Source:
Returns:
CPT keys.
- Type
- array
Example
function um_custom_admin_user_actions_hook( $actions, $user_id ) {
$actions['um_custom_action'] = array( 'label' => 'um_custom_action_label' );
return $actions;
}
add_filter( 'um_admin_user_actions_hook', 'um_custom_admin_user_actions_hook', 10, 2 );