snipt

Ctrl+h for KB shortcuts

PHP

load jquery in wordpress

1
2
3
<?php wp_enqueue_script("jquery"); ?>

<?php wp_head(); ?>
https://snipt.net/embed/4b8d2b6d9b55f194ec0e797030380f54/
/raw/4b8d2b6d9b55f194ec0e797030380f54/
4b8d2b6d9b55f194ec0e797030380f54
php
PHP
3
2019-08-23T23:26:54
True
False
False
/api/public/snipt/24215/
load-jquery-in-wordpress
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> <span class="nx">wp_enqueue_script</span><span class="p">(</span><span class="s2">&quot;jquery&quot;</span><span class="p">);</span> <span class="cp">?&gt;</span><span class="x"></span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="cp">&lt;?php</span> <span class="nx">wp_head</span><span class="p">();</span> <span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
enqueue, jquery, wordpress