woocommerce_blocks_get_php_translation_from_core( string $translation, string $text, string $domain )
Filter translations so we can retrieve translations from Core when the original and the translated texts are the same (which happens when translations are missing).
Description Description
Parameters Parameters
- $translation
-
(Required) Translated text based on WC Blocks translations.
- $text
-
(Required) Text to translate.
- $domain
-
(Required) The text domain.
Return Return
(string) WC Blocks translation. In case it's the same as $text, Core translation.
Source Source
File: packages/woocommerce-blocks/woocommerce-gutenberg-products-block.php