Skip to content

Instantly share code, notes, and snippets.

@brettshumaker
Last active February 8, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettshumaker/72e49495465981d681a15bba288bb250 to your computer and use it in GitHub Desktop.
Save brettshumaker/72e49495465981d681a15bba288bb250 to your computer and use it in GitHub Desktop.
$post object
<?php
WP_Post::__set_state(
array(
'ID' => 123,
'post_author' => '1',
'post_date' => '2019-02-08 06:24:07',
'post_date_gmt' => '2019-02-08 12:24:07',
'post_content' => '',
'post_title' => '',
'post_excerpt' => '',
'post_status' => 'publish',
'comment_status' => 'open',
'ping_status' => 'closed',
'post_password' => '',
'post_name' => '',
'to_ping' => '',
'pinged' => '',
'post_modified' => '2019-02-08 06:24:07',
'post_modified_gmt' => '2019-02-08 12:24:07',
'post_content_filtered' => '',
'post_parent' => 0,
'guid' => 'https://mysite.com/?p=5694636',
'menu_order' => 0,
'post_type' => 'post',
'post_mime_type' => '',
'comment_count' => '0',
'filter' => 'raw',
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment