PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.4.8
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.4.8
2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 2.7.1 All 27 releases
insert-php / includes / jsonmapper / class / post.php

post.php in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts 2.4.8, at includes/jsonmapper/class/post.php

144 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Post class
4 *
5 * @author Webcraftic <wordpress.webraftic@gmail.com>
6 * @copyright (c) 18.03.2019, Webcraftic
7 * @version 1.0
8 */
9 namespace WINP\JsonMapper;
10
11 // Exit if accessed directly
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 class Post {
17
18 /**
19 * @var int Unique identifier for the object.
20 */
21 public $ID;
22
23 /**
24 * @var string The date the object was published, in the site's timezone.
25 */
26 public $date = '0000-00-00 00:00:00';
27
28 /**
29 * @var string The date the object was published, as GMT.
30 */
31 public $date_gmt = '0000-00-00 00:00:00';
32
33 /**
34 * @var integer The ID for the author of the object.
35 */
36 public $author = 0;
37
38 /**
39 * @var object The content for the object.
40 */
41 public $content = array();
42
43 /**
44 * @var object The title for the object.
45 */
46 public $title = array();
47
48 /**
49 * @var object The excerpt for the object.
50 */
51 public $excerpt = array();
52
53 /**
54 * @var string A named status for the object.
55 */
56 public $status = 'publish';
57
58 /**
59 * @var string Whether or not comments are open on the object.
60 */
61 public $comment_status = 'open';
62
63 /**
64 * @var string Whether or not the object can be pinged.
65 */
66 public $ping_status = 'open';
67
68 /**
69 * @var string The date the object was last modified, in the site's timezone.
70 */
71 public $modified = '0000-00-00 00:00:00';
72
73 /**
74 * @var string The date the object was last modified, as GMT.
75 */
76 public $modified_gmt = '0000-00-00 00:00:00';
77
78 /**
79 * @var object The globally unique identifier for the object.
80 */
81 public $guid = array();
82
83 /**
84 * @var string An alphanumeric identifier for the object unique to its type.
85 */
86 public $slug = 'post';
87
88 /**
89 * @var string Type of Post for the object.
90 */
91 public $type = 'post';
92
93 /**
94 * @var string URL to the object.
95 */
96 public $link = '';
97
98 /**
99 * @var integer The ID of the featured media for the object.
100 */
101 public $featured_media = 0;
102
103 /**
104 * @var boolean Whether or not the object should be treated as sticky.
105 */
106 public $sticky;
107
108 /**
109 * @var string The theme file to use to display the object.
110 */
111 public $template;
112
113 /**
114 * @var string The format for the object.
115 */
116 public $format;
117
118 /**
119 * @var object Meta fields.
120 */
121 public $meta;
122
123 /**
124 * @var array The terms assigned to the object in the category taxonomy.
125 */
126 public $categories;
127
128 /**
129 * @var array The terms assigned to the object in the post_tag taxonomy.
130 */
131 public $tags;
132
133 /**
134 * @var array Prominent words.
135 */
136 public $yst_prominent_words;
137
138 /**
139 * @var object Links.
140 */
141 public $_links;
142
143 }
144