WordPress add script with custom type (x-jquery-tmpl)

I would like to a add the following script into WordPress:

<script type="text/x-jquery-tmpl">  
  ...
</script>

but using:

wp_add_inline_script( 'my-script', '...' );

will give me:

<script type="text/javascript"> 
  ...
</script>

Must I edit header.php for any type of script that is not javascript?

Read more here: WordPress add script with custom type (x-jquery-tmpl)

Leave a Reply

Your email address will not be published. Required fields are marked *