Answers:
发布对象主要是wp_posts
数据库表的查询行,并带有一些其他功能。转储一个的内容很容易看到:
object(stdClass)
public 'ID' => int
public 'post_author' => string
public 'post_date' => string
public 'post_date_gmt' => string
public 'post_content' => string
public 'post_title' => string
public 'post_excerpt' => string
public 'post_status' => string
public 'comment_status' => string
public 'ping_status' => string
public 'post_password' => string
public 'post_name' => string
public 'to_ping' => string
public 'pinged' => string
public 'post_modified' => string
public 'post_modified_gmt' => string
public 'post_content_filtered' => string
public 'post_parent' => int
public 'guid' => string
public 'menu_order' => int
public 'post_type' => string
public 'post_mime_type' => string
public 'comment_count' => string
public 'filter' => string
var_dump()
顺便说一句。:)因为我的记录是xdebug增强版本,但这仅影响表示。不了解ancestors
字段,从来没有真正遇到过它。