Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function register_scripts() {
- wp_enqueue_script( 'theme-script', get_template_directory_uri() . '/public/js/main.js', '', null, true );
- wp_localize_script('theme-script', 'tplUrl', array(
- 'templateUrl' => get_template_directory_uri()
- ));
- }
- add_action( 'wp_enqueue_scripts', 'register_scripts');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement