Created
December 20, 2023 04:11
-
-
Save wpt00ls/7f9ee6e52da8dafaf26450405e3ce9df to your computer and use it in GitHub Desktop.
Woocommerce product title filter for "Ultimate Carousel For Divi" plugin
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
<?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