WordPress

Using wp_enqueue_script on shortcode function handler

I have this code function this_is_my_shortcode(){ wp_register_script(‘per-pas-belanja-online’, plugins_url(‘js/per-pas-belanja-online.js’, __FILE__), array(‘jquery’), ‘1.0.0’); wp_enqueue_script(‘per-pas-belanja-online’); return ‘<div id=”poppedout”>Blah</div>’; […]

No More Posts Available.

No more pages to load.