Home › Forums › Support › GP and WooCommerce: change related product text This topic has 5 replies, 2 voices, and was last updated 2 years, 3 months ago by Ying. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts August 13, 2019 at 7:53 am #983073 Samuel I use GP and WooCommerce in German. What is the most effective way to change the text “Ähnliche Produkte” to something like “EXAMPLE” with GP? Preferably via function.php Screeenshot: http://prntscr.com/os5lgj August 13, 2019 at 10:03 am #983213 DavidStaff Customer Support Hi there, this is the filter i would use to translate the text: add_filter( 'gettext', function( $translated_text ) { if ( 'Related products' === $translated_text ) { $translated_text = 'Your new text here'; } return $translated_text; } ); Just need to change the text you’re looking for and add the translated text you want. August 14, 2019 at 4:12 am #983770 Samuel Amazing thx! August 14, 2019 at 4:26 am #983794 DavidStaff Customer Support You’re welcome – its a real handy filter in WP for dealing with those elements that don’t have their own filter. January 28, 2022 at 11:15 am #2097476 Vincenzo Quarta Hi @David, that code now no longer works? Thanks January 28, 2022 at 11:49 am #2097507 YingStaff Customer Support Hi vincenzoquarta, Can you open a new topic and link us to your site? Let me know 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In