illegal_user_logins хук-фильтр . WC 3.7.0
WordPress 4.4 - filters the list of blocked usernames.
Использование
add_filter( 'illegal_user_logins', 'filter_function_name_3069' ); function filter_function_name_3069( $usernames ){ // filter... return $usernames; }
- $usernames(массив)
- Array of blocked usernames.
Список изменений
С версии 3.7.0 | Введена. |
Где вызывается хук
woocommerce/includes/wc-user-functions.php 170
$illegal_logins = (array) apply_filters( 'illegal_user_logins', array() );