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.
Source
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.
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |
Make a custom permission callback to a custom endpoint.