wc_enqueue_js( string $code )

Queue some JavaScript code to be output in the footer.


Description Description


Parameters Parameters

$code

(Required) Code.


Top ↑

Source Source

File: includes/wc-core-functions.php

1005
1006
1007
1008
1009
1010
1011
1012
1013
function wc_enqueue_js( $code ) {
    global $wc_queued_js;
 
    if ( empty( $wc_queued_js ) ) {
        $wc_queued_js = '';
    }
 
    $wc_queued_js .= "\n" . $code . "\n";
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.