wp_is_application_passwords_available() WordPress Function

The wp_is_application_passwords_available() function is used to check if the application passwords feature is available for the current user. This function is only available in WordPress 4.7 and later.

wp_is_application_passwords_available() #

Checks if Application Passwords is globally available.


Description

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


Top ↑

Return

(bool)


Top ↑

Source

File: wp-includes/user.php

function wp_is_application_passwords_available() {
	/**
	 * 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', wp_is_application_passwords_supported() );
}


Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More