WP-API auth starter
- function checkApiAuth( $result ){
- // Check if user is allowed to do stuff here
- if($user_checks_out) {
- $result = true;
- } else {
- $result = false;
- }
- return $result;
- }
- add_filter('json_authentication_errors', 'checkApiAuth');
March 5, 2015