Determines whether a non-public property is set.
Description
If $name matches a post field, the comment post will be loaded and the post’s value checked.
Parameters
$namestringrequired- Property to check if set.
Source
public function __isset( $name ) {
if ( in_array( $name, $this->post_fields, true ) && 0 !== (int) $this->comment_post_ID ) {
$post = get_post( (int) $this->comment_post_ID );
return $post && property_exists( $post, $name );
}
return false;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.