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
<?php | |
/** | |
* POST to endpoint /wp-json/my-custom-endpoint/v1/save-string | |
* | |
* Send a string and use "Application Passwords" plugin and save to option | |
*/ | |
add_action( 'rest_api_init', 'my_custom_endpoint', 10 ); | |
/** |
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
### Keybase proof | |
I hereby claim: | |
* I am brandondove on github. | |
* I am brandondove (https://keybase.io/brandondove) on keybase. | |
* I have a public key ASDkveaEeqc9F6AbCpZ3edOFnzCY3-LDYPLqCyzQOUTNAAo | |
To claim this, I am signing this object: |
OlderNewer