WP_Post::__isset()
Isset-er.
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. |
WP_Post::__isset() WP Post:: isset code WP 6.3
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 ); }