-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
A user has requested the ability to only display parts of the street address in the tooltip instead of the entire street address. For example, the user only wants to display the city name instead of the street number, city, state, zip code, and country inside of the tooltip.
Describe the solution you'd like.
On the Display Event Location for The Events Calendar settings page, there should be a checkbox for each of the elements of the full address:
- Address
- City
- State
- Zip Code
- Country
This would allow for individual enabling or disabling of certain parts of the address when the address is enabled to be displayed within the tooltip.
These checkboxes would be displayed underneath the Show Full Venue Address Inside Tooltip checkbox this is currently present and they would only be enabled if the Show Full Venue Address Inside Tooltip was checked.
Describe alternatives you've considered.
One short-term solution would be to disable showing the full street address within the tooltip and change your venue/location name to include the name of the city. For example, if your venue was "The National Mall" you could disable the address inside of the tooltip and change your venue name to "The National Mall in Washington, D.C."
Additional Context:
To accomplish this feature the following need to be accomplished:
- New settings will need to be registered for controlling these elements within the tooltip: address, city, state, zip code, and country
- Default values will need to be established for the new settings
- Validation for the newly established settings
- Callbacks for the settings page will need to be created for the new settings
- The settings page will need to be updated to include checkboxes for the new settings and make sure they are only enabled when the
Show Full Venue Address Inside Tooltipcheckbox is checked - The new settings will need to be included in removal upon deletion of the plugin from a WordPress installation
- The tooltip template override for The Events Calendar System will need to be updated to handle the new settings to only display what is enabled by the user
Thank you for your interest and dedication to make our project better together!
Metadata
Metadata
Assignees
Labels
Projects
Status