Filter: um_user_permissions_filter

apply_filters( 'um_user_permissions_filter', $permissions, $user_id ) → {array}

Filters User Permissions.

Parameters:
Name Type Description
$permissions array

User Permissions.

$user_id int

User ID.

Since:
  • 2.0
Source:
Returns:

User Permissions.

Type
array
Example

Add custom user permissions.

function my_user_permissions( $permissions, $user_id ) {
    // your code here
    return $permissions;
}
add_filter( 'um_user_permissions_filter', 'my_user_permissions', 10, 2 );