Having issues related wp_enqueue_script
-
when i use wp_enqueue_script js script load in the page but if i use wp_enqueue_scripts it does not work
<?php function my_custom_scripts() { $path = plugins_url('js/main.js',__FILE__); $ver = filemtime(plugin_dir_path(__FILE__).'js/main.js'); wp_enqueue_script( 'my-custom-plugin', $path, array(), $ver, true ); } add_action('wp_enqueue_scripts','my_custom_scripts'); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Having issues related wp_enqueue_script’ is closed to new replies.