wp_is_application_passwords_available_for_user хук-фильтрWP 5.6.0

Filters whether Application Passwords is available for a specific user.

Использование

add_filter( 'wp_is_application_passwords_available_for_user', 'wp_kama_is_application_passwords_available_for_user_filter', 10, 2 );

/**
 * Function for `wp_is_application_passwords_available_for_user` filter-hook.
 * 
 * @param bool    $available True if available, false otherwise.
 * @param WP_User $user      The user to check.
 *
 * @return bool
 */
function wp_kama_is_application_passwords_available_for_user_filter( $available, $user ){

	// filter...
	return $available;
}
$available(true|false)
True if available, false otherwise.
$user(WP_User)
The user to check.

Список изменений

С версии 5.6.0 Введена.

Где вызывается хук

wp_is_application_passwords_available_for_user()
wp_is_application_passwords_available_for_user
wp-includes/user.php 4987
return apply_filters( 'wp_is_application_passwords_available_for_user', true, $user );

Где используется хук в WordPress

Использование не найдено.