Description #
This filter verifies each permission. You can hook into specific permission and return false.
apply_filters('fluentform/verify_user_permission_' . $eachPermission, $allowed, $formId);
Usage #
add_filter('fluentform/verify_user_permission_'.$permission, function ($allowed, $formId) {
return $allowed;
}, 10, 2);
Parameters #
- $allowed (boolean) Status
- $formId (int) Form ID
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\App\Modules\Acl -> hasPermission($permissions, $formId = false)