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.
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.