Skip to content

Instantly share code, notes, and snippets.

@wpt00ls
Created December 20, 2023 04:11
Show Gist options
  • Save wpt00ls/7f9ee6e52da8dafaf26450405e3ce9df to your computer and use it in GitHub Desktop.
Save wpt00ls/7f9ee6e52da8dafaf26450405e3ce9df to your computer and use it in GitHub Desktop.
Woocommerce product title filter for "Ultimate Carousel For Divi" plugin
<?php
// WooCommerce Product Title
add_filter(
'uc_carousel_product_title',
function ($title) {
// Add your logic to change the title string
$title = substr($title, 0, 9);
return $title;
},
10,
1
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment