illegal_user_logins filter-hookWC 3.7.0

WordPress 4.4 - filters the list of blocked usernames.

Usage

add_filter( 'illegal_user_logins', 'wp_kama_illegal_user_logins_filter' );

/**
 * Function for `illegal_user_logins` filter-hook.
 * 
 * @param array $usernames Array of blocked usernames.
 *
 * @return array
 */
function wp_kama_illegal_user_logins_filter( $usernames ){

	// filter...
	return $usernames;
}
$usernames(array)
Array of blocked usernames.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

wc_create_new_customer_username()
illegal_user_logins
woocommerce/includes/wc-user-functions.php 170
$illegal_logins = (array) apply_filters( 'illegal_user_logins', array() );

Where the hook is used in WooCommerce

Usage not found.