Church-Plugins / cp-library

GNU General Public License v2.0
0 stars 0 forks source link

Cleanup all data on deactivation #84

Open tannerm opened 1 year ago

tannerm commented 1 year ago

Add a checkbox to the advanced settings to allow removal of all CP Sermon data on deactivation.

This should run on the deactivation hook and should remove all options, post type content, taxonomy terms, etc.

Additional logic will need to be put in place for global ChurchPlugin tables like the log and cp_source tables to ensure other plugins are not using them before removal. The removal of core ChurchPlugin data should reside in the core plugin while the CP Sermon specific content should be in the CP Sermon plugin.