Adding Hook to template.php
johnfrancisli opened this issue · comments
Francis Li commented
The use case is described here:
https://community.frontity.org/t/frontity-embedded-mode-passing-data-from-wp-to-frontity-geoip/5749
I would like to discuss the idea of adding do_action hooks to the template for users to add additional code into the code.
This will allow adding plugin compatibilities (popups/passing geo IP data/ etc) to further extend into the Frontity.
An example would be to pass a window object so Frontity can read it as well.
I first would like to validate this idea before doing a PR for this.
Luis Herranz commented
Go ahead @johnfrancisli. I'll gladly review and merge it 🙂