summaryrefslogtreecommitdiff
path: root/snippets/oidc-reclaim.php
blob: f3fa4d91306681744dd58440158caef0c41d1b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * License: Public domain.
 * Description: This snipped integrates the OIDC connect button with WooCommerce
 *              to allow importing the customer's shopping details via OIDC / Re:ClaimID.
 * Author Christian Grothoff <grothoff@taler.net>
 */

// Modify OIDC connect button text for Reclaim:ID.
add_filter(
	'openid-connect-generic-login-button-text',
	function( $text ) {
		$text = __( 'Login with Re:ClaimID', 'gnutaler' );
		return $text;
	}
);