Created
December 5, 2011 22:08
-
-
Save sproutventure/1435603 to your computer and use it in GitHub Desktop.
Require Login on Voucher Claim - GBS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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