Created
December 5, 2021 11:14
-
-
Save ahmedeshaan/b24f0ba03c9ed38665ef6bf34bcd0b77 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
add_filter('gettext', 'change_rp_text', 10, 3); | |
add_filter('ngettext', 'change_rp_text', 10, 3); | |
function change_rp_text($translated, $text, $domain) | |
{ | |
if ($text === 'Related products' && $domain === 'woocommerce') { | |
$translated = esc_html__('Check out our other products', $domain); | |
} | |
return $translated; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment