wp_is_application_passwords_supported()WP 5.9.0

Checks if Application Passwords is supported.

Application Passwords is supported only by sites using SSL or local environments but may be made available using the wp_is_application_passwords_available filter.

Хуков нет.

Возвращает

true|false.

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

wp_is_application_passwords_supported();

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

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

Код wp_is_application_passwords_supported() WP 6.0.2

function wp_is_application_passwords_supported() {
	return is_ssl() || 'local' === wp_get_environment_type();
}