yit_wc_deprecated_filters

The YITH WooCommerce Compare yit wc deprecated filters hook.

Description

apply_filters( 'yit_wc_deprecated_filters', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'woocommerce_email_order_schema_markup' => 'woocommerce_structured_data_order', 'woocommerce_product_width' => 'woocommerce_product_get_width', 'woocommerce_product_height' => 'woocommerce_product_get_height', 'woocommerce_product_length' => 'woocommerce_product_get_length', 'woocommerce_product_weight' => 'woocommerce_product_get_weight', 'woocommerce_get_sku' => 'woocommerce_product_get_sku', 'woocommerce_get_price' => 'woocommerce_product_get_price', 'woocommerce_get_regular_price' => 'woocommerce_product_get_regular_price', 'woocommerce_get_sale_price' => 'woocommerce_product_get_sale_price', 'woocommerce_product_tax_class' => 'woocommerce_product_get_tax_class', 'woocommerce_get_stock_quantity' => 'woocommerce_product_get_stock_quantity', 'woocommerce_get_product_attributes' => 'woocommerce_product_get_attributes', 'woocommerce_product_gallery_attachment_ids' => 'woocommerce_product_get_gallery_image_ids', 'woocommerce_product_review_count' => 'woocommerce_product_get_review_count', 'woocommerce_product_files' => 'woocommerce_product_get_downloads', 'woocommerce_get_currency' => 'woocommerce_order_get_currency', 'woocommerce_order_amount_discount_total' => 'woocommerce_order_get_discount_total', 'woocommerce_order_amount_discount_tax' => 'woocommerce_order_get_discount_tax', 'woocommerce_order_amount_shipping_total' => 'woocommerce_order_get_shipping_total', 'woocommerce_order_amount_shipping_tax' => 'woocommerce_order_get_shipping_tax', 'woocommerce_order_amount_cart_tax' => 'woocommerce_order_get_cart_tax', 'woocommerce_order_amount_total' => 'woocommerce_order_get_total', 'woocommerce_order_amount_total_tax' => 'woocommerce_order_get_total_tax', 'woocommerce_order_amount_total_discount' => 'woocommerce_order_get_total_discount', 'woocommerce_order_amount_subtotal' => 'woocommerce_order_get_subtotal', 'woocommerce_order_tax_totals' => 'woocommerce_order_get_tax_totals', 'woocommerce_refund_amount' => 'woocommerce_get_order_refund_get_amount', 'woocommerce_refund_reason' => 'woocommerce_get_order_refund_get_reason', 'default_checkout_country' => 'default_checkout_billing_country', 'default_checkout_state' => 'default_checkout_billing_state', 'default_checkout_postcode' => 'default_checkout_billing_postcode',)
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'yit_wc_deprecated_filters', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the yit_wc_deprecated_filters callback 
  2. function filter_yit_wc_deprecated_filters( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'yit_wc_deprecated_filters', 'filter_yit_wc_deprecated_filters', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'yit_wc_deprecated_filters', 'filter_yit_wc_deprecated_filters', 10, 1 ); 

Defined (1)

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

/plugin-fw/yit-woocommerce-compatibility.php  
  1. return apply_filters( 'yit_wc_deprecated_filters', array(