wordpress attach scripts not working properly

41 views Asked by At

I am trying to attach my js and CSS files but it's not working can anyone help me out?

Here is my code.

add_action( 'wp_enqueue_scripts', 'script_manager');
public function script_manager() {
    wp_register_script( 'wc-'.self::$endpoint."-js" , plugin_dir_url(__FILE__).'template/shCore.js', array( 'jquery' ), '1.0', true );

}
0

There are 0 answers