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
function my_user_permissions( $permissions, $user_id ) {
// your code here
return $permissions;
}
add_filter( 'um_user_permissions_filter', 'my_user_permissions', 10, 2 );