diff options
Diffstat (limited to 'snippets/oidc-reclaim.php')
-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); |