wc_enqueue_js()WC 1.0

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() code WC 8.7.0

function wc_enqueue_js( $code ) {
	global $wc_queued_js;

	if ( empty( $wc_queued_js ) ) {
		$wc_queued_js = '';
	}

	$wc_queued_js .= "\n" . $code . "\n";
}