Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
add_action('mr_register_route', function() {
// Note, the 3rd parameter is optional. If it is not passed, then `GET` is assumed.
MswWpRouter::addRoute('test', 'my_test', 'GET');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment