bbp_validate_signup_role( string $to_validate = '' )
Validate the Forum role during signup
Description Description
This helper function performs a number of generic checks, and encapsulates the logic used to validate if a Forum Role is valid, typically during new user registration, but also when adding an existing user to a site in Multisite installations.
Parameters Parameters
- $to_validate
-
(Optional) A role ID to validate
Default value: ''
Return Return
(string) A valid role ID, or empty string on error
Source Source
File: includes/users/signups.php
Changelog Changelog
Version | Description |
---|---|
2.6.5 | Introduced. |