GC_Comment::__isset()
最后更新于:2021-11-26 22:27:50
GC_Comment::__isset( string$name)Check whether a non-public property is set.
参数
- $name
-
(string) (Required) Property name.
响应
(bool)
源文件
文件: gc-includes/class-gc-comment.php
public function __isset( $name ) {
if ( in_array( $name, $this->post_fields, true ) && 0 !== (int) $this->comment_post_ID ) {
$post = get_post( $this->comment_post_ID );
return property_exists( $post, $name );
}
}