woocommerce_add_to_cart_fragments filter-hookWC 1.0

Usage

add_filter( 'woocommerce_add_to_cart_fragments', 'wp_kama_woocommerce_add_to_cart_fragments_filter' );

/**
 * Function for `woocommerce_add_to_cart_fragments` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_add_to_cart_fragments_filter( $array ){

	// filter...
	return $array;
}
$array
-

Where the hook is called

WC_AJAX::get_refreshed_fragments()
woocommerce_add_to_cart_fragments
woocommerce/includes/class-wc-ajax.php 229-234
'fragments' => apply_filters(
	'woocommerce_add_to_cart_fragments',
	array(
		'div.widget_shopping_cart_content' => '<div class="widget_shopping_cart_content">' . $mini_cart . '</div>',
	)
),

Where the hook is used in WooCommerce

Usage not found.