Skip to content

Instantly share code, notes, and snippets.

@mattheu
Last active October 24, 2016 11:14
Show Gist options
  • Save mattheu/afedf266e2b3ae0bb828c80ca1b15665 to your computer and use it in GitHub Desktop.
Save mattheu/afedf266e2b3ae0bb828c80ca1b15665 to your computer and use it in GitHub Desktop.
<?php
add_action( 'rest_api_init', 'my_rest_api' );
function my_rest_api() {
// My custom endpoint code here.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment