WP_Post::__isset() public WP 3.5.0
Isset-er.
{} It's a method of the class: WP_Post{}
No Hooks.
Return
true|false
. Null. Nothing.
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 Post:: isset WP 5.7.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 );
}