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.


Top ↑

Return Return

(string) WC Blocks translation. In case it's the same as $text, Core translation.


Top ↑

Source Source

File: packages/woocommerce-blocks/woocommerce-gutenberg-products-block.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.