Can the developers please add some apply_filters() calls in the code?
The easiest ones to add is in the functions in src/Infrastructure/WP/Translations/BackendStrings.php and src/Infrastructure/WP/Translations/FrontendStrings.php
For example, change:
return [ ..... big array ];
to
return apply_filters( 'wpamelia_backend_common_strings', [ .... big array ] );
I know that the strings can be changed via .mo/.po files. I only want to change one string "On-site" ('on_site') to "In person" or "In studio".
I would also love to be able to disable on-site payments if the user is not logged in. I might use the filter in WordPress's get_option() call to do this.
I forwarded your suggestion to our developers, but I can't promise that it will be applied.
You can change the "On-Site" in Amelia/Customize - you don't need to go through the .po files
At the moment, there's no way for the "On-Site" payment method to be disabled while a user is not logged in. Not through Amelia, that is, but you can probably manage it with a custom code.
Can the developers please add some apply_filters() calls in the code?
The easiest ones to add is in the functions in src/Infrastructure/WP/Translations/BackendStrings.php and src/Infrastructure/WP/Translations/FrontendStrings.php
For example, change:
to
I know that the strings can be changed via .mo/.po files. I only want to change one string "On-site" ('on_site') to "In person" or "In studio".
I would also love to be able to disable on-site payments if the user is not logged in. I might use the filter in WordPress's get_option() call to do this.
Hello Damien.
I forwarded your suggestion to our developers, but I can't promise that it will be applied.
You can change the "On-Site" in Amelia/Customize - you don't need to go through the .po files
At the moment, there's no way for the "On-Site" payment method to be disabled while a user is not logged in. Not through Amelia, that is, but you can probably manage it with a custom code.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I did write some custom code and it is working for me. It's a bit of a hack because it's changing the JSON string.
Thank you for the information about customizing the booking form labels. I will definitely use this.Thank you for sharing this with everyone, Damien.
I'll forward it to our developers in case it's of use to them as well.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables