Skip to content

Instantly share code, notes, and snippets.

@kalenjohnson
Created October 7, 2014 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kalenjohnson/b59baf9537ae16eead1f to your computer and use it in GitHub Desktop.
Save kalenjohnson/b59baf9537ae16eead1f to your computer and use it in GitHub Desktop.
wp_enqueue_script('duchateau_js', get_template_directory_uri() . $assets['js'], array(), null, true);
wp_localize_script( 'duchateau_js', 'wp_api', array(
'url' => esc_url_raw(get_json_url()),
'theme' => esc_url_raw(get_template_directory_uri())
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment