• Hello!

    I would like to give ‘Shop Manager’ the capability to acccess:

    WP control panel > Tools > Erase personal data
    WP control panel > Tools > Export personal data

    ‘Delete users’ capability does not add the above.

    How would this be possible?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    WordPress automatically maps user capabilities for this admin menu items to ‘manage_options’ capability.

    
    case 'export_others_personal_data':
    case 'erase_others_personal_data':
    case 'manage_privacy_options':
    	$caps[] = is_multisite() ? 'manage_network' : 'manage_options';
    			break;
    

    If you wish to change this, try to re-map via ‘map_meta_cap’ filter:

    
    return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );
    
    Thread Starter pickme

    (@pickme)

    Hello,

    Thank you for your support.

    I added the filter as a snippet and enabled ‘manage_options’ capability for shop manager.

    I did not manage to solely allow Erase personal data and Export personal data for the Shop Manager.

    Could you please clarify on how to implement this?

    Thank you

    • This reply was modified 5 years, 9 months ago by pickme.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delete / Export Personal Data’ is closed to new replies.