Checks if Application Passwords is available for a specific user.
Description
By default all users can use Application Passwords. Use ‘wp_is_application_passwords_available_for_user’ to restrict availability to certain users.
Parameters
$user
int|WP_Userrequired- The user to check.
Source
}
return new WP_User_Request( $post );
}
/**
* Checks if Application Passwords is supported.
*
* Application Passwords is supported only by sites using SSL or local environments
* but may be made available using the 'wp_is_application_passwords_available' filter.
*
* @since 5.9.0
*
* @return bool
*/
function wp_is_application_passwords_supported() {
return is_ssl() || 'local' === wp_get_environment_type();
}
/**
* Checks if Application Passwords is globally available.
*
* By default, Application Passwords is available to all sites using SSL or to local environments.
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.