Last active
May 7, 2020 12:04
-
-
Save vanaf1979/df9d7cde2f05376cc67e6ce33066ce9c to your computer and use it in GitHub Desktop.
Setup Axios for the WordPress Rest Api https://since1979.dev/snippet-014-setup-axios-for-the-wordpress-rest-api/
This file contains 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
<script> | |
var mynamespace = {"rootapiurl":"http:\/\/exaple.com\/wp-json\/","nonce":"5d3df615f5"}; | |
</script> | |
<script src='http://exaple.com/wp-content/themes/theme/script.js?ver=1.0.0'></script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment