Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Registramos una ruta nueva para la rest api
add_action( 'rest_api_init', function () {
register_rest_route( 'convulsio/v2', '/convulsio-events/',
'methods' => 'GET',
'callback' => 'convuls_customquery'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.