diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-21 00:29:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-21 00:29:35 +0200 |
commit | d94a594def9855014c3080c1933d7cb2a6d1ad07 (patch) | |
tree | 52a83b3f59470361b8f7a8295a0f6758b6c37b7c | |
parent | f9d91b18aa4e0a682500dc2c5c42d9cea034071f (diff) | |
download | woocommerce-taler-d94a594def9855014c3080c1933d7cb2a6d1ad07.tar.gz woocommerce-taler-d94a594def9855014c3080c1933d7cb2a6d1ad07.tar.bz2 woocommerce-taler-d94a594def9855014c3080c1933d7cb2a6d1ad07.zip |
update snippets
-rw-r--r-- | snippets/oidc-woocommerce.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/snippets/oidc-woocommerce.php b/snippets/oidc-woocommerce.php index 1178037..904c78c 100644 --- a/snippets/oidc-woocommerce.php +++ b/snippets/oidc-woocommerce.php @@ -27,7 +27,7 @@ add_action( // Show login form at the shopping cart (if not logged in). add_action( 'woocommerce_before_checkout_billing_form', - function () use ( $login_form ) { + function ( $checkout ) use ( $login_form ) { $user = wp_get_current_user(); if ( 0 === $user->ID ) { // ID 0 is used to indicate user is not logged in. @@ -41,8 +41,8 @@ add_action( // (checkout) page after OIDC provided the data. add_action( 'woocommerce_before_checkout_billing_form', - function () use ( $login_form ) { - handle_redirect_cookie ( $login_form ); + function ( $checkout ) use ( $login_form ) { + $login_form->handle_redirect_cookie ( ); } ); |