Changeset 3041796
- Timestamp:
- 02/27/2024 09:22:21 AM (2 years ago)
- File:
-
- 1 edited
-
litcommerce/trunk/litcommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
litcommerce/trunk/litcommerce.php
r3023376 r3041796 3 3 Plugin Name: LitCommerce 4 4 Description: Helps you easily integrate your WooCommerce store with LitCommerce. 5 Version: 1.1. 25 Version: 1.1.3 6 6 Author: LitCommerce 7 7 Author URI: https://litcommerce.com … … 336 336 } 337 337 } 338 338 foreach ($response->data['meta_data'] as $meta_data){ 339 if($meta_data->key == '_yoast_wpseo_primary_yith_product_brand'){ 340 $brand_id = $meta_data->value; 341 $terms_data = get_term_by( 'id', $brand_id, 'yith_product_brand' ); 342 try { 343 if($terms_data){ 344 $response->data['litc_product_brand'] = $terms_data->name; 345 break; 346 } 347 }catch (Exception $e){ 348 349 } 350 351 352 } 353 } 339 354 return $response; 340 355 }
Note: See TracChangeset
for help on using the changeset viewer.