frontity / frontity-embedded

Embedded Mode plugin for Frontity sites

Home Page:https://frontity.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding Hook to template.php

johnfrancisli opened this issue · comments

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.

Go ahead @johnfrancisli. I'll gladly review and merge it 🙂