1 vote

How to use wp_localize_script in custom page template?

wp_register_script('nags-quoting-main-js', NAGS_QUOTING_PLUGIN_URL . 'assets/js/main.js', array(), '', true); $nags_post_url = NAGS_QUOTING_PLUGIN_URL . 'post.php'; $use_google_api_key = get_option(...
Rajon Kobir's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible