WordPress at Your Fingertips
function is not described

WP_Post::__isset() public WP 3.5.0

Isset-er.

{} It's a method of the class: WP_Post{}

No Hooks.

Return

true|false.

Usage

$WP_Post = new WP_Post();
$WP_Post->__isset( $key );
$key(string) (required)
Property to check if set.

Changelog

Since 3.5.0 Introduced.

Code of WP_Post::__isset() WP 5.8.1

public function __isset( $key ) {
	if ( 'ancestors' === $key ) {
		return true;
	}

	if ( 'page_template' === $key ) {
		return true;
	}

	if ( 'post_category' === $key ) {
		return true;
	}

	if ( 'tags_input' === $key ) {
		return true;
	}

	return metadata_exists( 'post', $this->ID, $key );
}