Jump to content
IPS Community Suite 简体中文
Sign in to follow this  
ipscn

WordPress Comment Data

Recommended Posts

object(WP_Comment)[12774]
  public 'comment_ID' => string '25' (length=2)
  public 'comment_post_ID' => string '130' (length=3)
  public 'comment_author' => string 'admin' (length=5)
  public 'comment_author_email' => string 'xxxx@live.com' (length=19)
  public 'comment_author_url' => string '' (length=0)
  public 'comment_author_IP' => string '127.0.0.1' (length=9)
  public 'comment_date' => string '2017-02-06 00:15:42' (length=19)
  public 'comment_date_gmt' => string '2017-02-05 16:15:42' (length=19)
  public 'comment_content' => string '我特么是评论内容,看什么看?' (length=17)
  public 'comment_karma' => string '0' (length=1)
  public 'comment_approved' => string '1' (length=1)
  public 'comment_agent' => string 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2661.102 Safari/537.36' (length=110)
  public 'comment_type' => string '' (length=0)
  public 'comment_parent' => string '0' (length=1)
  public 'user_id' => string '1' (length=1)
  protected 'children' => null
  protected 'populated_children' => boolean false
  protected 'post_fields' => 
    array (size=21)
      0 => string 'post_author' (length=11)
      1 => string 'post_date' (length=9)
      2 => string 'post_date_gmt' (length=13)
      3 => string 'post_content' (length=12)
      4 => string 'post_title' (length=10)
      5 => string 'post_excerpt' (length=12)
      6 => string 'post_status' (length=11)
      7 => string 'comment_status' (length=14)
      8 => string 'ping_status' (length=11)
      9 => string 'post_name' (length=9)
      10 => string 'to_ping' (length=7)
      11 => string 'pinged' (length=6)
      12 => string 'post_modified' (length=13)
      13 => string 'post_modified_gmt' (length=17)
      14 => string 'post_content_filtered' (length=21)
      15 => string 'post_parent' (length=11)
      16 => string 'guid' (length=4)
      17 => string 'menu_order' (length=10)
      18 => string 'post_type' (length=9)
      19 => string 'post_mime_type' (length=14)
      20 => string 'comment_count' (length=13)

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×