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.


Top ↑

Return

(bool)


Top ↑

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 );
	}


Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.