yit_return_new_attribute_map

The YITH WooCommerce Wishlist 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-wishlist/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. 'customer_user' => 'customer_id',  
  17. '_customer_user' => 'customer_id',  
  18. /** Products */ 
  19. 'visibility' => 'catalog_visibility',  
  20. '_visibility' => '_catalog_visibility',  
  21. 'sale_price_dates_from' => 'date_on_sale_from',  
  22. '_sale_price_dates_from' => '_date_on_sale_from',  
  23. 'sale_price_dates_to' => 'date_on_sale_to',  
  24. '_sale_price_dates_to' => '_date_on_sale_to',  
  25. 'product_attributes' => 'attributes',  
  26. '_product_attributes' => '_attributes',  
  27. /**Coupons*/ 
  28. 'coupon_amount' => 'amount',  
  29. 'exclude_product_ids' => 'excluded_product_ids',  
  30. 'exclude_product_categories' => 'excluded_product_categories',  
  31. 'customer_email' => 'email_restrictions',  
  32. 'expiry_date' => 'date_expires',  
  33. );