Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created March 18, 2019 14:23
Show Gist options
  • Save ABooooo/af127ee877b81e91975559900dec7795 to your computer and use it in GitHub Desktop.
Save ABooooo/af127ee877b81e91975559900dec7795 to your computer and use it in GitHub Desktop.
// check original function befor override
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10);
add_action( 'woocommerce_shop_loop_item_title', 'add_custom_title', 10);
function add_custom_title() {
echo '<h2 class="woocommerce-loop-product__title">'.str_replace('ß', 'ss', get_the_title()).'</h2>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment