Tribe__Events__JSON_LD__Event->normalize_price not translated
-
The function
normalize_price()
withinTribe__Events__JSON_LD__Event
works only for English locale out of the box.$map = array( '/^\\s*free\\s*$/i' => '0', );
This will only replace “free” but not its translations.
$map = array( ); $free = sprintf('/^\\s*%s\\s*$/i', __('Free', 'the-events-calendar')); $map[$free] = '0';
will work for translations
- The topic ‘Tribe__Events__JSON_LD__Event->normalize_price not translated’ is closed to new replies.