How to enqueue some javascript source
-
Hi,
I need my plugin to generate two things – once on the page:
1) Using wp_enqueue_script() – this is done
<script type=”text/javascript” src=”https://<url>.js”></script>2) What can I use to generate a piece of javascript initialization code that should only appear once on the page
eg.
<script type=”text/javascript”>
ritc.initialize(‘63864593a4153879’);
</script>Is there anything like wp_enqueue_script() but which takes a string instead of a url?
Thanks in anticipation.
Colin G
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to enqueue some javascript source’ is closed to new replies.