woocommerce_queued_js
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
woocommerce_queued_js
woocommerce/includes/wc-core-functions.php 1038
echo apply_filters( 'woocommerce_queued_js', $js ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped