On this page
wp_is_application_passwords_available(): bool
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.
Return
bool
Source
File: wp-includes/user.php. View all references
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() );
}
Hooks
- apply_filters( 'wp_is_application_passwords_available',
bool $available ) -
Filters whether Application Passwords is available.
Related
Uses
| Uses | Description |
|---|---|
| wp_is_application_passwords_supported() wp-includes/user.php | Checks if Application Passwords is supported. |
| apply_filters() wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used By
| Used By | Description |
|---|---|
| WP_REST_Application_Passwords_Controller::get_user() wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php | Gets the requested user. |
| wp_is_application_passwords_available_for_user() wp-includes/user.php | Checks if Application Passwords is available for a specific user. |
| wp_authenticate_application_password() wp-includes/user.php | Authenticates the user using an application password. |
| wp_validate_application_password() wp-includes/user.php | Validates the application password credentials passed via Basic Authentication. |
| rest_add_application_passwords_to_index() wp-includes/rest-api.php | Adds Application Passwords info to the REST API index. |
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available