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: ''


Top ↑

Return Return

(string) A valid role ID, or empty string on error


Top ↑

Source Source

File: includes/users/signups.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.