This file contains 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 // only copy this line if needed | |
/** | |
* Change checkout URLs to product URLs for Facebook products | |
*/ | |
function sv_fbw_checkout_url_to_product( $product_data, $id ){ | |
$product_data['checkout_url'] = $product_data['url']; |
This file contains 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 | |
/** | |
* Add letters and envelopes to international services. | |
*/ | |
add_filter( 'wc_usps_services', function( $services ) { | |
$services['I_FIRST_CLASS']['services']['13'] = "First Class Mail® International Letters"; | |
$services['I_FIRST_CLASS']['services']['14'] = "First Class Mail® International Large Envelope"; | |
return $services; |
This file contains 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' ); |
This file contains 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 | |
add_filter( 'wc_shipment_tracking_get_providers' , 'wc_shipment_tracking_add_custom_provider' ); | |
/** | |
* wc_shipment_tracking_add_custom_provider | |
* | |
* Adds custom provider to shipment tracking | |
* Change the country name, the provider name, and the URL (it must include the %1$s) | |
* Add one provider per line |
This file contains 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
[ | |
{ | |
"all_day": true, | |
"cost": "100", | |
"customer_id": 1, | |
"date_created": 1551471271, | |
"date_modified": 1551593795, | |
"end": 1551571199, | |
"google_calendar_event_id": "uhd8bir3raajo4tco365foii1o", | |
"order_id": 154167, |
This file contains 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
[ | |
{ | |
"id": 171578, | |
"name": "Candy Land", | |
"slug": "candy-land", | |
"permalink": "https://yoursite.test/product/candy-land/", | |
"date_created": "2019-03-19T10:54:48", | |
"date_created_gmt": "2019-03-19T17:54:48", | |
"date_modified": "2019-03-19T15:37:38", | |
"date_modified_gmt": "2019-03-19T22:37:38", |
This file contains 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
[ | |
{ | |
"id": 145546, | |
"availability": [], | |
"base_cost": 0, | |
"block_cost": 0, | |
"name": "The Vault", | |
"parent_id": 0, | |
"qty": "5", | |
"sort_order": 0, |
This file contains 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
[ | |
{ | |
"id": 484, | |
"name": "Accessories", | |
"slug": "accessories", | |
"parent": 0, | |
"description": "", | |
"display": "default", | |
"image": null, | |
"menu_order": 0, |
This file contains 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
{ | |
"records": [ | |
{ | |
"date": "2019-03-19T00:00:00-0700", | |
"duration": 1, | |
"duration_unit": "day", | |
"booked": 0, | |
"available": 1, | |
"resources": { | |
"0": 1 |
This file contains 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
@media screen and (min-width: 768px) { | |
.woocommerce-active .site-header .site-branding img { | |
max-width: 40%; /* Adjust this percentage up or down to make the logo larger or smaller. */ | |
} | |
} |