| @@ -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 | /* |