Last active
October 7, 2023 17:39
-
-
Save woogists/2487ef7511bc24d4f733838ee463bc46 to your computer and use it in GitHub Desktop.
[WooCommerce Bookings]: Set custom Google client ID and secret
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Update Google client with your own application's cliend ID and secret from the Google Developer's Console. | |
*/ | |
add_action( | |
'woocommerce_bookings_update_google_client', | |
function ( Google_Client $client ) { | |
$client->setClientId( 'YourClientIDFromGoogleDevelopersConsole' ); | |
$client->setClientSecret( 'YourClientIDFromGoogleDevelopersConsole' ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment