wp_is_application_passwords_available()

Checks if Application Passwords is globally available.


Description Description

By default, Application Passwords is available to all sites using SSL or to local environments. Use ‘wp_is_application_passwords_available’ to adjust its availability.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: wp-includes/user.php

function wp_is_application_passwords_available() {
	$available = is_ssl() || 'local' === wp_get_environment_type();

	/**
	 * Filters whether Application Passwords is available.
	 *
	 * @since 5.6.0
	 *
	 * @param bool $available True if available, false otherwise.
	 */
	return apply_filters( 'wp_is_application_passwords_available', $available );
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.