llms_get_usernames_blocklist()

Retrieve a list of disallowed usernames.


Return Return

(string[])


Top ↑

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.
	 */


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Removed the deprecated llms_usernames_blacklist filter hook.
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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