wc_enqueue_js()
Queue some JavaScript code to be output in the footer.
No Hooks.
Return
null
. Nothing (null).
Usage
wc_enqueue_js( $code );
- $code(string) (required)
- Code.
wc_enqueue_js() wc enqueue js code WC 9.8.2
function wc_enqueue_js( $code ) { global $wc_queued_js; if ( empty( $wc_queued_js ) ) { $wc_queued_js = ''; } $wc_queued_js .= "\n" . $code . "\n"; }