On this page
WP_Application_Passwords::is_in_use(): bool
Checks if application passwords are being used by the site.
Description
This returns true if at least one application password has ever been created.
Return
bool
Source
File: wp-includes/class-wp-application-passwords.php. View all references
public static function is_in_use() {
$network_id = get_main_network_id();
return (bool) get_network_option( $network_id, self::OPTION_KEY_IN_USE );
}
Related
Uses
| Uses | Description |
|---|---|
| get_network_option() wp-includes/option.php | Retrieves a network’s option value based on the option name. |
| get_main_network_id() wp-includes/functions.php | Gets the main network ID. |
Used By
| Used By | Description |
|---|---|
| wp_authenticate_application_password() wp-includes/user.php | Authenticates the user using an application password. |
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_application_passwords/is_in_use