public
Created

Require Login on Voucher Claim - GBS

  • Download Gist
gistfile1.aw
PHP
1 2 3 4 5 6 7
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();
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.