How to change the "customer reviews" text near the star rating on Woocommerce product pages?

Onur Yılmaz
Onur Yılmaz used Ask the Experts™
on
I mean this text:
customer reviews
I don't edit core files, any filter (or anything easier) would be great.

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Full Stack Developer
Commented:
You can edit these files in an upgrade-safe way using overrides.

    Templates files can be found within the /wp-content/plugins/woocommerce/templates/ directory.

 1.   Copy the needed file into the directory within your theme named woocommerce (create if it does not exist), keeping the same file structure but removing the templates subdirectory.

  2.  For example, if you need to overwrite file /wp-content/plugins/woocommerce/templates/archive-product.php, copy this file to /themes/themexxxx/woocommerce folder:
    woocommerce_how_to_overwrite_templates_1

 3.   The copied file will now override the WooCommerce default template file.

 4.   Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.
Onur YılmazFounder at someka.net

Author

Commented:
Hmm.. So you say this is the easiest and only way to change rating text in woocommerce. Right?
Banshi lal dangiFull Stack Developer

Commented:
Yes,  Never do any modification in plugin file directly,  otherwise on upgrade we lose the changes same with the theme.
Onur YılmazFounder at someka.net

Author

Commented:
No, I know not to modify core files. But my question was to use a filter or any custom function to change the text?
Banshi lal dangiFull Stack Developer

Commented:
If you are particularly looking for filter, this link might help you.
https://www.speakinginbytes.com/2013/10/gettext-filter-wordpress/

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial