WP_Application_Passwords::is_in_use() WordPress Method
The WP_Application_Passwords::is_in_use() function is used to check whether application passwords are currently being used on a WordPress site. This function will return true if application passwords are in use, and false if they are not.
WP_Application_Passwords::is_in_use() #
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
public static function is_in_use() { $network_id = get_main_network_id(); return (bool) get_network_option( $network_id, self::OPTION_KEY_IN_USE ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |