rcp_validate_username

Filters whether or not a given username is valid. This is used during the registration process when creating a new user account.

Parameters:

  • $is_valid (bool) - Whether or not the supplied username is valid. If false, an error will be shown on the registration form.
  • $username (string) - The username supplied by the customer.