W3cubDocs

/WordPress

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

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–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_application_passwords/is_in_use