Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active October 7, 2023 17:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/2487ef7511bc24d4f733838ee463bc46 to your computer and use it in GitHub Desktop.
Save woogists/2487ef7511bc24d4f733838ee463bc46 to your computer and use it in GitHub Desktop.
[WooCommerce Bookings]: Set custom Google client ID and secret
<?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