php - Why is wp_enqueue_scripts not working? -


i have simple call wp_enqueue_scripts hook won't run function:

add_action( 'wp_enqueue_scripts', 'add_gz_scripts' ); function add_gz_scripts() {     wp_register_script('hdgzjs',plugins_url('/js/hdgz.js', __file__),'','',true);     wp_enqueue_script('hdgzjs'); } 

i'm not getting "file not found" on js file , i'm not getting in php errors. it's not running function. i've tried echoing inside function test , won't echo. aside plugin activates , runs fine.

for comes across this:

add_action( 'wp_enqueue_scripts', '...' ); site side add_action( 'admin_init', '...' ); admin side

when stare @ code long it's easy overlook doing this.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -