yit_wc_deprecated_filter_mapping

The YITH WooCommerce Wishlist yit wc deprecated filter mapping function.

Description

yit_wc_deprecated_filter_mapping(); 

Usage

  1. if ( !function_exists( 'yit_wc_deprecated_filter_mapping' ) ) { 
  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_wc_deprecated_filter_mapping(); 
  7.  

Defined (1)

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

/plugin-fw/yit-woocommerce-compatibility.php  
  1. function yit_wc_deprecated_filter_mapping() { 
  2. $deprecated_filters = yit_wc_deprecated_filters(); 
  3.  
  4. $filter = current_filter(); 
  5. $args = func_get_args(); 
  6. $data = $args[ 0 ]; 
  7.  
  8.  
  9. if ( isset( $deprecated_filters[ $filter ] ) ) { 
  10. if ( has_filter( $deprecated_filters[ $filter ] ) ) { 
  11. $data = apply_filters_ref_array( $deprecated_filters[ $filter ], $args ); 
  12.  
  13. return $data;