WP_Application_Passwords::is_in_use()
Checks if Application Passwords are being used by the site.
Description
This returns true if at least one App Password has ever been created.
Return
(bool)
Source
File: wp-includes/class-wp-application-passwords.php
public static function is_in_use() { $network_id = get_main_network_id(); return (bool) get_network_option( $network_id, self::OPTION_KEY_IN_USE ); }
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_application_passwords/is_in_use