/ Published in: PHP
Load jQuery into WordPress generated pages, the wpenqueuescript function can be used in plugins as well. OR Add and load a new script that depends on jQuery (this will also cause it to load jQuery into the page as well).
Expand |
Embed | Plain Text
<?php wp_enqueue_script('jquery'); ?> <?php wp_enqueue_script('jquery'); ?> <?php wp_enqueue_script('newscript','/wp-content/plugins/someplugin/js/newscript.js',array('jquery'),'1.0' ); ?>
You need to login to post a comment.
