Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cf_replace_store_and_shop_texts( $translation, $text, $domain ) {
- $allowed_domains = [
- 'wc-frontend-manager-delivery',
- ];
- if( in_array( $domain, $allowed_domains ) ) {
- $find = ['Delivery Persons'];
- $replace = ['HEBREW_TRANSLATION_GOES_HERE'];
- $translation = str_ireplace( $find, $replace, $translation );
- }
- return $translation;
- }
- add_filter('gettext', 'cf_replace_store_and_shop_texts', 10, 3);
- add_filter('ngettext', 'cf_replace_store_and_shop_texts', 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement