Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justingreerbbi/658295550b60cde3e3f25ee6348eba30 to your computer and use it in GitHub Desktop.
Save justingreerbbi/658295550b60cde3e3f25ee6348eba30 to your computer and use it in GitHub Desktop.
Override default auth code lifetime
function test_wo_auth_code_lifetime( $auth_code_lifetime ){
return 60; // seconds
}
add_filter( 'wo_auth_code_lifetime', 'test_wo_auth_code_lifetime' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment