Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created December 5, 2011 22:08
Show Gist options
  • Save sproutventure/1435603 to your computer and use it in GitHub Desktop.
Save sproutventure/1435603 to your computer and use it in GitHub Desktop.
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