A WordPress-centric search engine for devs and theme authors



wp_is_application_passwords_available ›

Since5.6.0
Deprecatedn/a
wp_is_application_passwords_available ( No parameters )
Returns:
  • (bool)
Defined at:
Codex:

Checks if Application Passwords is globally available.

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


Source

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 );
}