#3308
Vladimir
Keymaster

Hi,

1) Do not grant ‘manage_options’ capability

2) Try to use this code at functions.php or as a Must Use plugin:


add_filter( 'map_meta_cap', 'my_jetpack_custom_caps', 10, 4 );

function my_jetpack_custom_caps($caps, $cap, $user_id, $args) {
    switch( $cap ) {
        case 'jetpack_admin_page':
        case 'jetpack_connect_user':
            $caps = array( 'manage_options' );
    }
    
    return $caps;
}

It will replace ‘read’ capability (used at Jetpack by default) with ‘manage_options’.