event date format following site settings
-
Hello!
I am using Events Manager and Events Manager Pro in a multisite setup. I have a custom single-event.php template and use the Placeholders for WordPress relative timezone date/time, as described in https://wp-events-plugin.com/documentation/placeholders/
The time and date are adjusted to the site’s timezone as expected, but the format is always the same. As I have sites from all over the world in my multisite setup who have different time and date formatting requirements, I was expecting also to see the format follow the individual site configuration.
I was wondering how I can fulfill the requirement of having the format localized according to the site configuration?
My idea was to use get_option() and put that into the placeholder, but that doesnt work because A) the output of get_option is more than the format string (__ prefix, quotes) and B) I am not sure when and how the resolution of function and placeholder is working (WP noob, sorry).Thank you for your help!
The topic ‘event date format following site settings’ is closed to new replies.