Created
January 24, 2018 07:16
-
-
Save ashokrane/24bfc98e718e8fc4679f8aee1163dcf8 to your computer and use it in GitHub Desktop.
How to shorten WooCommerce product name in Abandon cart recover email notification
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 | |
add_filter( 'wcap_product_name', 'shorten_product_name_in_abandon_cart_emails', 10, 1 ); | |
function shorten_product_name_in_abandon_cart_emails( $item_name ) { | |
if ( 'Rent a bicycle' == $item_name ) { | |
$item_name = 'Rent a bicy..'; | |
} | |
return $item_name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment