Description #
This filter returns user roles for the user registration settings feed.
apply_filters('fluentorm/user_registration_creatable_roles', $validRoles);
Usage #
add_filter('fluentorm/user_registration_creatable_roles', function ($validRoles) {
// do your stuff
return $validRoles;
}, 10, 1);
Parameters #
- $validRoles (array) User Roles
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentFormPro\src\Integrations\UserRegistration\UserRegistrationApi -> getUserRoles()