Last active
May 7, 2020 19:48
-
-
Save vanaf1979/28022bb1ec86567b75c74c80447d0080 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
<?php | |
function namespace_enqueue_scripts( $screen ) | |
{ | |
if ( 'edit.php' == $screen ) { | |
// Enque your scripts | |
} | |
} | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment