function remontkam_scripts() {
wp_enqueue_style( 'remontkam-style', get_stylesheet_uri() );
wp_enqueue_style( 'remontkam-animation', get_template_directory_uri() . '/css/animation.css' );
wp_enqueue_script( 'remontkam-anim', get_template_directory_uri() . '/js/anim.js', array('jquery'), '', true );
wp_enqueue_script( 'remontkam-maskedinput', get_template_directory_uri() . '/js/jquery.maskedinput.min.js', array('jquery'), '', true );
wp_enqueue_script( 'remontkam-main', get_template_directory_uri() . '/js/main.js', array('jquery'), '', true );
wp_enqueue_script( 'remontkam-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), '', true );
wp_enqueue_script( 'remontkam-skiplinkfocus', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array('jquery'), '', true );
wp_enqueue_script( 'remontkam-calibri', '//cdn.callibri.ru/callibri.js', array('jquery'), '', true );
wp_enqueue_script('remontkam-ajax_take-number', get_template_directory_uri() . '/js/ajax.js',array('jquery'),'',true);
wp_localize_script('remontkaa-ajax_url','remontkam',array('ajaxurl'=> admin_url('admin-ajax.php')));
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'remontkam_scripts' );
По идее она должна вызываться в консоле, но в консоле вот:
remontkam
VM4549:1 Uncaught ReferenceError: remontkam is not defined
at :1:1
(anonymous) @ VM4549:1
remontkam.ajaxurl
VM4561:1 Uncaught ReferenceError: remontkam is not defined
at :1:1