GC_Comment::__get()
最后更新于:2021-11-26 22:27:38
GC_Comment::__get( string$name)Magic getter.
参数
- $name
-
(string) (Required)
响应
(mixed)
源文件
文件: gc-includes/class-gc-comment.php
public function __get( $name ) {
if ( in_array( $name, $this->post_fields, true ) ) {
$post = get_post( $this->comment_post_ID );
return $post->$name;
}
}