Last active
July 10, 2020 16:12
-
-
Save ravewebdev/b88041afd7d18925b78f150213e8e7d4 to your computer and use it in GitHub Desktop.
3.1.1. Register route
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 | |
register_rest_route( 'rave-initiative/v1', '/initiative/(?P<id>[\d]+)', [ | |
'methods' => WP_REST_SERVER::EDITABLE, | |
'callback' => 'update_initiative', | |
'permission_callback' => 'check_initiative_permissions', | |
] ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment