diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-13 18:30:40 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-13 18:30:40 +0200 |
commit | 1f5b248c5bc16c8a9422bdeb1ff31589a73ecb62 (patch) | |
tree | 430526c108268d288ed827e3aaf70348198f0cef /snippets | |
parent | 4256d9dc417a76c1ec5ba15022c69a27fd5a6658 (diff) | |
download | woocommerce-taler-1f5b248c5bc16c8a9422bdeb1ff31589a73ecb62.tar.gz woocommerce-taler-1f5b248c5bc16c8a9422bdeb1ff31589a73ecb62.tar.bz2 woocommerce-taler-1f5b248c5bc16c8a9422bdeb1ff31589a73ecb62.zip |
dbg logic
Diffstat (limited to 'snippets')
-rw-r--r-- | snippets/oidc-reclaim.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/snippets/oidc-reclaim.php b/snippets/oidc-reclaim.php index cbb2f8c..93c14f5 100644 --- a/snippets/oidc-reclaim.php +++ b/snippets/oidc-reclaim.php @@ -8,16 +8,3 @@ add_filter('openid-connect-generic-login-button-text', function( $text ) { $text = __('Login with Re:ClaimID', 'gnutaler' ); return $text; }); - -// make sure OIDC 'login' goes to WooCommerce checkout URL. -add_action('openid-connect-generic-redirect-user-back', - function( $redirect_url, $user ) { - // Take over the redirection complete. - // Send users somewhere special based on their capabilities. - global $woocommerce; - $checkout_url = $woocommerce->cart->wc_get_checkout_url (); - wp_redirect( $checkout_url); // or admin_url( $checkout_url) )?; - exit(); - }, - 10, - 2); |