Last active
June 28, 2016 18:57
-
-
Save kjtolsma/234d19f8d95e6bd439d1b2194872559d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_localize_script( | |
'theme-posts', | |
'themePostData', | |
array( | |
'postsEndpointURL' => get_site_url() . '/wp-json/wp/v2/post', | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment