WP_Network::__isset( string $key ): bool

Isset-er.


Description

Allows current multisite naming conventions when checking for properties.


Top ↑

Parameters

$key string Required
Property to check if set.

Top ↑

Return

bool Whether the property is set.


Top ↑

Source

File: wp-includes/class-wp-network.php. View all references

public function __isset( $key ) {
	switch ( $key ) {
		case 'id':
		case 'blog_id':
		case 'site_id':
			return true;
	}

	return false;
}

Top ↑

Changelog

Changelog
Version Description
4.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.