WP_Network::__isset

Advertisement

Summery Summery

Isset-er.

Syntax Syntax

WP_Network::__isset( string $key )

Description Description

Allows current multisite naming conventions when checking for properties.

Parameters Parameters

$key

(Required) Property to check if set.

Return Return

(bool) Whether the property is set.

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply