queue_js_string

Head-related functions

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.

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

queue_js_file

Next topic

queue_js_url

This Page