wp_get_inline_script_tag


wp_get_inline_script_tag ( $javascript, $attributes = array() )

Parameters:
  • (string) javascript Inline JavaScript code.
  • (array) attributes Optional. Key-value pairs representing `<script>` tag attributes.
Returns:
  • (string) String containing inline JavaScript code wrapped around `<script>` tag.
Defined at:

Description

Wraps inline JavaScript in `