Created
November 9, 2023 11:43
-
-
Save codersaiful/6053bf6b2160b90144fef9748ef28e5c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
add_filter('wpto_product_description', 'wpto_custom_wpto_product_description'); | |
function wpto_custom_wpto_product_description($description){ | |
$leter_limit = 100; | |
$description = strip_tags($description); | |
$description = substr($description,0,$leter_limit); | |
return $description; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment