Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data deletion for WPJM CPTs #1418

Merged
merged 1 commit into from
Apr 6, 2018
Merged

Conversation

alexsanford
Copy link
Contributor

Added initial functionality to delete data when WP Job Manager is deleted. This is for GDPR compliance (see #1362).

This first PR moves all posts of type job_listing to the Trash.

Testing

  • First, you may want to back up your data, or copy it to a fresh WordPress installation.

  • Ensure that the tests pass.

  • Delete the WP Job Manager plugin.

  • Look at your Posts, Pages, and other CPT's from other plugins. Ensure they have not been deleted or trashed.

  • Inspect the database. All posts of type job_listing should have the status trash.

  • If WP Job Manager is reinstalled and activated, you should be able to see those posts in your Trash and restore them.

  • Please also test on a multisite installation. When the plugin is deleted from the Network Admin, the data should be trashed across all sites.

Copy link
Member

@jom jom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good!

@jom jom added this to the 1.31.0 milestone Apr 6, 2018
@alexsanford alexsanford merged commit 85cf110 into master Apr 6, 2018
@jom jom mentioned this pull request Apr 18, 2018
@jom jom deleted the add/data-deletion-cpts branch December 11, 2018 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants