WP_Application_Passwords::is_in_use(): bool
- Since
- 5.6.0
- Source
wp-includes/class-wp-application-passwords.php:53
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
Uses · 2
- get_main_network_id()Gets the main network ID.
- get_network_option()Retrieves a network's option value based on the option name.
Used by · 1
- wp_authenticate_application_password()Authenticates the user using an application password.
Source
public static function is_in_use() { $network_id = get_main_network_id(); return (bool) get_network_option( $network_id, self::OPTION_KEY_IN_USE ); }History
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/class-wp-application-passwords.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.