PluginProbe
WP Ultimate Post Grid / 3.9.0
WP Ultimate Post Grid v3.9.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | includes/public/class-wpupg-item.php +9 -0 3.4.0 → 3.9.0 View file →
@@ -114,8 +114,11 @@
114 114 }
115 115
116 116 return '';
117 117 }
118 + public function comment_count() {
119 + return $this->meta( 'comment_count', 0 );
120 + }
118 121 public function content() {
119 122 return $this->meta( 'content' );
120 123 }
121 124 public function custom_field( $key ) {
@@ -123,8 +126,11 @@
123 126 }
124 127 public function date() {
125 128 return $this->meta( 'date' );
126 129 }
130 + public function date_modified() {
131 + return $this->meta( 'date_modified' );
132 + }
127 133 public function excerpt() {
128 134 return $this->meta( 'excerpt' );
129 135 }
130 136 public function image( $size = 'thumbnail' ) {
@@ -167,8 +173,11 @@
167 173 $thumb = wp_get_attachment_image_src( $this->image_id(), $size );
168 174 }
169 175
170 176 return $thumb && isset( $thumb[0] ) ? $thumb[0] : '';
177 + }
178 + public function menu_order() {
179 + return $this->meta( 'menu_order', 0 );
171 180 }
172 181 public function post_type() {
173 182 return $this->meta( 'post_type' );
174 183 }