I have a simple call to the wp_enqueue_scripts hook but it won't run the 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 a "file not found" on the js file and I'm not getting in php errors. It's just not running the function. I've tried echoing inside the function to test and it won't even echo. Aside from this the plugin activates and runs fine.