obiekty w WP

Komentarze WP_Comment Object

  • $comment = get_comment($comm_id);

właściwości:

  • $comment->comment_ID
  • $comment->comment_post_ID
  • $comment->comment_author
  • $comment->comment_author_email
  • $comment->comment_author_url
  • $comment->comment_author_IP
  • $comment->comment_date
  • $comment->comment_date_gmt
  • $comment->comment_karma
  • $comment->comment_content
  • $comment->comment_approved
  • $comment->comment_agent
  • $comment->comment_type
  • $comment->comment_parent
  • $comment->

 

Post:

  • $post = get_post();

właściwości:

  • $post->post_author
  • $post->post_date
  • $post->post_date_gmt
  • $post->post_content
  • $post->post_title
  • $post->post_excerpt
  • $post->post_status
  • $post->comment_status
  • $post->ping_status
  • $post->post_name
  • $post-> to_ping
  • $post->pinged
  • $post->post_modified
  • $post->post_modified_gmt
  • $post->post_content_filtered
  • $post->post_parent
  • $post->guid
  • $post->menu_order
  • $post->post_type
  • $post->post_mime_type
  • $post->comment_count