Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justingreerbbi/51eae4f71d621f231f67a36f9582a9bf to your computer and use it in GitHub Desktop.
Save justingreerbbi/51eae4f71d621f231f67a36f9582a9bf to your computer and use it in GitHub Desktop.
User action to overide auto authorization with grant type auth code for WP OAuth Server
function test_wo_authorization_code_authorize( $user_id ) {
exit( 'Run code to handle custom authorization instead of auto authorization ' . $user_id );
}
add_action( 'wo_authorization_code_authorize', 'test_wo_authorization_code_authorize' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment