llms_get_usernames_blocklist()
Retrieve a list of disallowed usernames.
Return Return
(string[])
Source Source
File: includes/functions/llms.functions.person.php
*
* @return string[]
*/
function llms_get_usernames_blocklist() {
$list = array( 'admin', 'test', 'administrator', 'password', 'testing' );
/**
* Modify the list of disallowed usernames
*
* If a user attempts to create a new account with any username found in this list they will receive an error and will not
* be able to register the account.
*
* @since 5.0.0
*
* @param string[] $list List of banned usernames.
*/
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Removed the deprecated llms_usernames_blacklist filter hook. |
| 5.0.0 | Introduced. |