WoodMartW
WoodMart
Apr 9

Optional Google Maps Imports

TLDR: A map added to a page, then removed still loads google maps js script. But regardless, we should be able to disable the google maps js code loading completely if we want to use an external js import with different callbacks/libraries etc. Files: /woodmart/inc/enqueue.php L 221,222 /woodmart/inc/integrations/elementor/elements/class-google-map.php L 669,670 /woodmart/inc/shortcodes/google-map.php L 142,143 Request: Add a checkbox in settings that can completely disable google maps from loading or being imported. Side-Effects: Maybe hide the map elements from elementor when it is disabled, or just respond with 'this feature is disabled' as the output of the block so if someone does disable GMaps and then tries to use GMaps on a page, doesn't log a ticket for broken things.
PendingPending