PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Models/Product.php +0 -18 1.5.4 → 1.6.5 View file →
@@ -176,14 +176,8 @@
176 176 return get_the_terms($this->ID, 'product-categories');
177 177 }
178 178
179 179
180 - public function getTags()
181 - {
182 - return get_the_terms($this->ID, 'product-tags');
183 - }
184 -
185 -
186 180 public function getMediaUrl($size = 'thumbnail')
187 181 {
188 182 return get_the_post_thumbnail_url($this->ID, $size);
189 183 }
@@ -192,14 +186,8 @@
192 186 /*
193 187 * Transforming old getters with accessor
194 188 * Todo check
195 189 */
196 - public function getTagsAttribute($value)
197 - {
198 - return get_the_terms($this->ID, 'product-tags');
199 - }
200 -
201 -
202 190 public function getCategoriesAttribute($value)
203 191 {
204 192 return get_the_terms($this->ID, 'product-categories');
205 193 }
@@ -256,14 +244,8 @@
256 244 */
257 245 public function categories()
258 246 {
259 247 return $this->getTermByType('product-categories');
260 - }
261 -
262 -
263 - public function tags()
264 - {
265 - return $this->getTermByType('product-tags');
266 248 }
267 249
268 250
269 251 /*