queue_js_string¶
Summary¶
- queue_js_string(string $string, array $options = Array)¶
Declare a JavaScript string to be used on the page and included in the page’s head.
This needs to be called either before head() or in a plugin_header hook.
Parameters: - $string (string) – JavaScript string to include.
- $options (array) – An array of options.