-
Notifications
You must be signed in to change notification settings - Fork 0
9. Multilanguage
Falko Joseph edited this page Mar 4, 2021
·
3 revisions
WP SweepBright PRO supports multilanguage out of the box. SweepBright currently supports three languages: Dutch, French and English.
Only a couple of fields within SweepBright need are translations such as the title
, description
, price costs
and legal mentions
.
All of the other returned data does not have translations as they are either booleans, numbers or fixed values.
get_field('estate')['title']['nl'];
// Returns the Dutch title of a property
get_field('estate')['description']['nl'];
// Returns the Dutch description of a property
get_field('price')['price_costs']['nl'];
// Returns the Dutch additional price costs of a property
get_field('legal_mentions')['nl'];
// Returns the Dutch legal mentions of a property