Support » Fixing WordPress » [Multisite] Privacy Settings Missing for Admin

  • Resolved maxasdf1


    The “Privacy Settings” page does not seem to be visible to (normal) admins in multisites. Super-admins can both see and edit the page. Is that intended behaviour? If so, is there a way to work around this?

Viewing 1 replies (of 1 total)
  • Yes this intended behavior. Add the following code to functions.php of your current theme to overwrite,

    add_action('map_meta_cap', 'custom_manage_privacy_options', 1, 4);
    function custom_manage_privacy_options($caps, $cap, $user_id, $args)
      $user_meta = get_userdata($user_id);
      if (array_intersect(['administrator'], $user_meta->roles)) {
        if ('manage_privacy_options' === $cap) {
          $manage_name = is_multisite() ? 'manage_network' : 'manage_options';
          $caps = array_diff($caps, [ $manage_name ]);
      return $caps;
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.