Last active
April 15, 2024 10:21
-
-
Save vanaf1979/70ab23bc72d0999e7a430f90bf52bfb5 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 | |
/** | |
* Hook: enqueue_block_editor_assets. | |
* | |
* @uses add_action() https://developer.wordpress.org/reference/functions/add_action/ | |
* @uses enqueue_block_editor_assets https://developer.wordpress.org/reference/hooks/enqueue_block_editor_assets/ | |
*/ | |
add_action('enqueue_block_editor_assets', 'namespace_enqueue_scripts', 100, 0); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment