um_user_permissions_filter
Hook type
Filter
Description
Change User Permissions
Parameters
$permissions
(array) User Permissions
$user_id
(int) User ID
Usage
<?php add_filter( 'um_user_permissions_filter', 'function_name', 10, 2 ); ?>
Examples
<?php add_filter( 'um_user_permissions_filter', 'my_user_permissions', 10, 2 ); function my_user_permissions( $permissions, $user_id ) { // your code here return $permissions; } ?>
Change Log
Since: 2.0
Source
um_user_permissions_filter
is located in includes/core/class-user.php::line 758