woocommerce_get_script_data filter-hookWC 1.0

Usage

add_filter( 'woocommerce_get_script_data', 'wp_kama_woocommerce_get_script_data_filter', 10, 2 );

/**
 * Function for `woocommerce_get_script_data` filter-hook.
 * 
 * @param  $params 
 * @param  $handle 
 *
 * @return 
 */
function wp_kama_woocommerce_get_script_data_filter( $params, $handle ){

	// filter...
	return $params;
}
$params
-
$handle
-

Where the hook is called

WC_Frontend_Scripts::get_script_data()
woocommerce_get_script_data
woocommerce/includes/class-wc-frontend-scripts.php 625
return apply_filters( 'woocommerce_get_script_data', $params, $handle );

Where the hook is used in WooCommerce

Usage not found.