WP_Network::__isset() WordPress Method
The WP_Network::__isset() function checks whether a network property is set. This function can be useful when you need to check if a network has been set up correctly.
WP_Network::__isset( string $key ) #
Isset-er.
Description
Allows current multisite naming conventions when checking for properties.
Parameters
- $key
(string)(Required)Property to check if set.
Return
(bool) Whether the property is set.
Source
File: wp-includes/class-wp-network.php
public function __isset( $key ) {
switch ( $key ) {
case 'id':
case 'blog_id':
case 'site_id':
return true;
}
return false;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |