Skip to content

Instantly share code, notes, and snippets.

View camcombatman's full-sized avatar

Matt Campbell camcombatman

View GitHub Profile
@camcombatman
camcombatman / rewrite.php
Last active May 10, 2022 16:43
Rewrite WooCommerce URLs to be full URLs & Include Base
function ugp_rewrite_rules(){
$store_terms = get_terms(array(
'taxonomy' => 'product_cat',
'hide_empty' => FALSE,
'childless' => FALSE
)
);
$store_rewrite_string = '';