Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bogdan-mainwp/0aa8e1cb526a742443be0bbb2058824e to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/0aa8e1cb526a742443be0bbb2058824e to your computer and use it in GitHub Desktop.
Custom snippet for the MainWP Code Snippets Extension that can be used for disabling the Privacy Policy change notification introduced in the recent Wordfence plugin update.
<?php
// Use this snippet in the MainWP Code Snippets Extension (https://mainwp.com/extension/code-snippets/)
// Snippet Type: This Code Snippet only returns information from Child Site
wfConfig::set('touppPromptNeeded', 0);
// To reverse the update, use wfConfig::set('touppPromptNeeded', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment