yit_return_new_attribute_map

The YITH WooCommerce Compare yit return new attribute map function.

Description

yit_return_new_attribute_map(); 

Usage

  1. if ( !function_exists( 'yit_return_new_attribute_map' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-compare/plugin-fw/yit-woocommerce-compatibility.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yit_return_new_attribute_map(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/plugin-fw/yit-woocommerce-compatibility.php  
  1. function yit_return_new_attribute_map() { 
  2. return array( 
  3. 'post_parent' => 'parent_id',  
  4. 'post_title' => 'name',  
  5. 'post_status' => 'status',  
  6. 'post_content' => 'description',  
  7. 'post_excerpt' => 'short_description',  
  8. /** Orders */ 
  9. 'paid_date' => 'date_paid',  
  10. '_paid_date' => '_date_paid',  
  11. 'completed_date' => 'date_completed',  
  12. '_completed_date' => '_date_completed',  
  13. '_order_date' => '_date_created',  
  14. 'order_date' => 'date_created',  
  15. 'order_total' => 'total',  
  16. /** Products */ 
  17. 'visibility' => 'catalog_visibility',  
  18. '_visibility' => '_catalog_visibility',  
  19. 'sale_price_dates_from' => 'date_on_sale_from',  
  20. '_sale_price_dates_from' => '_date_on_sale_from',  
  21. 'sale_price_dates_to' => 'date_on_sale_to',  
  22. '_sale_price_dates_to' => '_date_on_sale_to',  
  23. /**Coupons*/ 
  24. 'coupon_amount' => 'amount',  
  25. 'exclude_product_ids' => 'excluded_product_ids',  
  26. 'exclude_product_categories' => 'excluded_product_categories',  
  27. 'customer_email' => 'email_restrictions',  
  28. 'expiry_date' => 'date_expires',  
  29. );