GithubHelp home page GithubHelp logo

eduardoleao / members-privacy-caps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justintadlock/members-privacy-caps

1.0 0.0 0.0 30 KB

License: GNU General Public License v2.0

PHP 92.63% JavaScript 7.37%

members-privacy-caps's Introduction

Members - Privacy Caps

Members - Privacy Caps is an add-on for the Members plugin that creates additional capabilities related to the privacy and personal data features added in WordPress 4.9.6. For some people, these are known as the GDPR tools.

Please note that this is a commercial plugin. It is public here on GitHub so that anyone can contribute to its development or easily post bugs. If using on a live site, please purchase a copy of the plugin.

Professional Support

If you need professional plugin support from me, the plugin author, you can access the support forums at Theme Hybrid, which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 75,000+ users (and growing).

Copyright and License

This project is licensed under the GNU GPL, version 2 or later.

2018 © Justin Tadlock.

Documentation

The use of this plugin is fairly straightforward. You must have the Members plugin installed and activated to use this plugin.

You should also have, at minimum, PHP 5.6 installed on your server. If you're unsure of your PHP version, you can install the Display PHP Version plugin to check.

Usage

The plugin adds the following capabilities to the "General" tab on the edit role screen:

  • Manage Privacy Options (manage_privacy_options) - Allows you to manage the site or network's privacy options, including the privacy page.

The plugin adds the following capabilities to the "Users" tab on the edit role screen:

  • Export Others' Personal Data (export_others_personal_data) - Allows you to export personal data for users other than your own.
  • Erase Others' Personal Data (erase_others_personal_data) - Allows you to erase personal data for users other than your own.

These capabilities are granted to the administrator role upon plugin activation. They can be granted to additional roles via the edit role screen just like you'd do with any other capabilities using the Members plugin.

Managing privacy options

Currently, there's a bug in WordPress (Trac ticket) that won't allow users without manage_options to see sub-menu items of "Settings" in the admin, even if the user has permission to do so. There's nothing this plugin can do to address this. Therefore, if you have the manage_privacy_options but not the manage_options capability, you won't be able to access the Settings > Privacy page in the admin.

However, you will be able to edit the Privacy Policy page if one has been set for the site under the "Pages" screen in the admin. Of course, you'll need the appropriate page-editing capabilities for editing the page.

A good use case for this is to give Editors (or a similar role) the manage_privacy_options cap to allow them to actually make copyediting changes to the page.

Erasing personal data

The erase_others_personal_data capability must be used in conjunction with the delete_users capability. This is how core WP is set up. It makes sense when you think about it. Users shouldn't be able to erase others' data without high enough permission to actually delete the actual user account.

Multisite

If you're on a multisite setup, the new capabilities (see above) are not automatically added to administrators on each sub-site. This is because WordPress, by default, considers the privacy and personal data features a "super admin" privilege. You may assign these capabilities to administrators or other roles on a per-site basis if you feel like your administrators should have these permissions.

members-privacy-caps's People

Contributors

justintadlock avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.