libreform / wp-libre-form

Easy native HTML5 forms for WordPress. Version 1.5 is unmaintained, but works without issue. 2.0 has been rewritten from the ground, and can be found at https://github.com/libreform/libreform
https://wordpress.org/plugins/wp-libre-form
GNU General Public License v3.0
67 stars 27 forks source link

[WIP ]Make form CPT un-public and have own preview functionality #158

Open timiwahalahti opened 5 years ago

timiwahalahti commented 5 years ago

This makes form CPT unpublic and introduces a new way to have the previews. It's still very much WIP and proof-of-concept level, but basically works.

We check on template_include filter if there is preview GET parameter, use theme default page template and modify the page title with the_title and content with the_content filters. This way we ensure that proper theme template is used and styles do not break badly.

What I need to test, is what happens when frontpage has it's own template.