WP_Application_Passwords::is_in_use()public staticWP 5.6.0

Checks if Application Passwords are being used by the site.

This returns true if at least one Application Password has ever been created.

{} Это метод класса: WP_Application_Passwords{}

Хуков нет.

Возвращает

true|false.

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

$result = WP_Application_Passwords::is_in_use();

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

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

Код WP_Application_Passwords::is_in_use() WP 6.0.1

public static function is_in_use() {
	$network_id = get_main_network_id();
	return (bool) get_network_option( $network_id, self::OPTION_KEY_IN_USE );
}