Skip to content

Instantly share code, notes, and snippets.

@dancameron
Forked from sproutventure/gist:1435603
Created March 21, 2012 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/2148579 to your computer and use it in GitHub Desktop.
Save dancameron/2148579 to your computer and use it in GitHub Desktop.
GBS: Action: Require Login on Voucher Claim - GBS
add_action('on_biz_voucher_page','require_login_on_voucher_claim');
function require_login_on_voucher_claim() {
if ( !gb_account_has_merchant() ) {
wp_redirect(gb_get_account_login_url());
exit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment