Created
August 8, 2023 14:12
-
-
Save wp-seopress/688428138720cfb3d95687d45c2e89aa to your computer and use it in GitHub Desktop.
Filter product category slug used in HTML sitemap
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
add_filter('seopress_sitemaps_html_product_cat_slug', 'sp_sitemaps_html_product_cat_slug'); | |
function sp_sitemaps_html_product_cat_slug($product_cat_slug) { | |
$product_cat_slug = 'product_cat'; //default | |
return $product_cat_slug; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment