mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://stackoverflow.com/questions/76005062/woocommerce-how-to-change-the-text-next-to-star-rating
6 lines
273 B
Text
6 lines
273 B
Text
add_filter( 'ngettext', 'wc_modify_n_customer_reviews', 9999, 5 );
|
|
|
|
function wc_modify_n_customer_reviews( $translation, $single, $plural, $number, $domain ) {
|
|
$translation = preg_replace( '%s customer reviews', '%s reviews', $translation );
|
|
return $translation;
|
|
}
|