You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have been using this plugin boilerplate for many years, it is great. I plan on creating some new plugins soon and want to set a good foundational architecture, as well as make my life easy in terms of version control. There will be both a free and pro (paid) version. The pro version will contain a lot of the functionality of the free version. In some cases the pro version will need to override some hooks that were set in the free version. Essentially this is my plan:
I plan on inserting the 'free' version within the pro version. The 'free' version code will be loaded first
all the relevant action/filter hooks that add 'pro' features will be removed from the free version. The hooks will be added again in the pro version, with callbacks to the 'pro' functions
essentially the 'pro' version will be dependent on the 'free' version to work. It will only contain code related to enhancing the 'free' version
I am wondering if others agree with the approach I plan on taking or have any other suggestions, specifically related to how WPPB is structured. I think others may benefit from seeing this conversation too. Thanks!
The text was updated successfully, but these errors were encountered:
I recommend building the base plugin as a normal free plugin and adding a folder called pro to include pro related classes that extend the free classes.
So when releasing the free version you simply remove that pro folder. I plan on using freemius to automatically take care of this for me and I've started implementing it.
The pro folder is automatically removed as well as some pro-related code in the free version that calls pro methods. Such as my settings page.
More settings are pulled from the pro folder if the class exists. But after running the plugin through freemius this code is completely removed for the free version
Hi, I have been using this plugin boilerplate for many years, it is great. I plan on creating some new plugins soon and want to set a good foundational architecture, as well as make my life easy in terms of version control. There will be both a free and pro (paid) version. The pro version will contain a lot of the functionality of the free version. In some cases the pro version will need to override some hooks that were set in the free version. Essentially this is my plan:
I am wondering if others agree with the approach I plan on taking or have any other suggestions, specifically related to how WPPB is structured. I think others may benefit from seeing this conversation too. Thanks!
The text was updated successfully, but these errors were encountered: