Advertisement
fauzanjeg

Add Custom Script File

Mar 23rd, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. /** Add Custom Script File */
  2. function custom_js_file() {
  3.     wp_enqueue_script( 'jnews-custom-js', get_parent_theme_file_uri( 'custom.js' ) );
  4. }
  5.  
  6. add_action( 'wp_enqueue_scripts','custom_js_file' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement