woocommerce_queued_js filter-hookWC 2.6.0

Queued jsfilter.

Usage

add_filter( 'woocommerce_queued_js', 'wp_kama_woocommerce_queued_js_filter' );

/**
 * Function for `woocommerce_queued_js` filter-hook.
 * 
 * @param string $js JavaScript code.
 *
 * @return string
 */
function wp_kama_woocommerce_queued_js_filter( $js ){

	// filter...
	return $js;
}
$js(string)
JavaScript code.

Changelog

Since 2.6.0 Introduced.

Where the hook is called

wc_print_js()
woocommerce_queued_js
woocommerce/includes/wc-core-functions.php 1026
echo apply_filters( 'woocommerce_queued_js', $js ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

Where the hook is used in WooCommerce

Usage not found.