CHANGE READ MORE TEXT ON Woocommerce Button

//CHANGE READ MORE TEXT ON Woocommerce Button
// By Wayne Junor from wayneswebworld.com.au


add_filter( ‘gettext’, ‘ds_change_readmore_text’, 20, 3 );

function ds_change_readmore_text( $translated_text, $text, $domain ) {
if ( ! is_admin() && $domain === ‘woocommerce’ && $translated_text === ‘Read more’) {
$translated_text = ‘Your custom text’;
}
return $translated_text;
}