carlomanf / wp-funnel-manager

Organises wordpress content into multi-step funnels.
https://wordpress.org/plugins/wp-funnel-manager/
5 stars 0 forks source link

Determine whether to load a new funnel type #13

Closed carlomanf closed 3 years ago

carlomanf commented 3 years ago

11 has been tracking the progress of moving some code into a legacy class in preparation for full site editing.

The way to create funnels that support full site editing has been to make a new theme template with the single-$posttype pattern, and a new funnel type is automatically loaded.

The problem with this is not all post types are necessarily for funnels, and they may possibly be registered through other plugins. There will need to be a better way to determine whether a new funnel type is needed, possibly through a metadata field on the template.

carlomanf commented 3 years ago

7cf7442 was going to deregister funnel types that were not associated with the current theme, but this was reverted and the new approach is to automatically re-register all the funnel types on theme switch. There is now a metadata field that indicates that a template is intended for a new funnel type, as well as a new UI.