I am trying to add an external Javascript file from my plugin. My code is -
<?php
/******
*
* Plugin Name: Image Zoom
* Author: Kallol Das
* Description: This plugin will zoom an image of WordPress posts.
* version: 1.0
*
*******/
function zoom_image_main_js_init(){
wp_enqueue_script('zoom-script', plugins_url('/js/zoom-script.js', __FILE__), array('jquery'), 1.0, true);
}
add_action('init', 'zoom_image_main_js_init');
Now the problem is It's only enqueuing in admin footer But not in Frontpage footer. So, how to do that?