We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
Sometimes I need to override the address_format translation like
address_format
define('ACF_OSM_I18N_ADDR_STREET','{building} {house_number} {road}'); define('ACF_OSM_I18N_ADDR_CITY','{village} {town} {city}'); define('ACF_OSM_I18N_ADDR_COUNTRY','');
If you agree with this strange feature I'll propose a Pull request to do that ;-)
Regards.
The text was updated successfully, but these errors were encountered:
Thanks, much appreciated! Why not a filter? Would be more flexible, especially on multi-language sites or multisite installations. Usage could be:
add_filter('acf_osm_address_format', function($format) { return [ 'street' => '{building} {house_number} {road}', 'city' => '{village} {town} {city}', 'country' => '', ]; });
Sorry, something went wrong.
Using a filter is nicer for dev but it needs to set a functions.php in a child theme while the wp-config.php solution needs nothing ;-)
functions.php
wp-config.php
If you're agree I'll add the filter solution to my #129 in addition to the wp-config.php one.
filter
No branches or pull requests
Hi
Sometimes I need to override the
address_format
translation likeIf you agree with this strange feature I'll propose a Pull request to do that ;-)
Regards.
The text was updated successfully, but these errors were encountered: