Description  #

This filter returns user roles for the user registration settings feed.

apply_filters('fluentorm_UserRegistration_creatable_roles', $validRoles);

Usage   #

add_filter('fluentorm_UserRegistration_creatable_roles', function ($validRoles) {
    // do your stuff
    return $validRoles
}, 10, 1);

Parameters #

  • $validRoles (array) Use Roles

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in the pro version src/Integrations/UserRegistration/UserRegistrationApi.php

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *