Skip to content

Instantly share code, notes, and snippets.

@apkoponen
Created February 4, 2016 19:46
Show Gist options
  • Select an option

  • Save apkoponen/66ff5b02249fe2f9464b to your computer and use it in GitHub Desktop.

Select an option

Save apkoponen/66ff5b02249fe2f9464b to your computer and use it in GitHub Desktop.
Example interceptor
function oauth2_handle_access_token() {
if(isset($_GET['access_token'])) {
// Check if access token is valid. Give capabilities accordingly.
}
}
add_action('init', 'oauth2_handle_access_token')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment