Skip to content

Instantly share code, notes, and snippets.

View RobWiddick's full-sized avatar

Rob W RobWiddick

View GitHub Profile
@RobWiddick
RobWiddick / readme.md
Created November 14, 2022 23:01
Shopify and Google taxonomy reference lookup

Google Taxonomy ID to Shopify Taxonomy ID

This spreadsheet allows you to see the corresponding Shopify ID to a Google Taxonomy ID.

For some reason, Shopify decided to use their own unique ID's instead of the de facto Google ID's, which causes problems for bulk operations.

@RobWiddick
RobWiddick / functions.php
Created February 9, 2021 15:48
Clear All Pantheon & WP Caches on post save
<?php
// Place snippet in functions.php
// Purge pantheon & wp cache on post save (not suggested for sites with high traffic)
add_action('save_post', function() {
if ( function_exists( 'pantheon_clear_edge_all' ) ) {
pantheon_clear_edge_all();
}
wp_cache_flush();