Hi @mattyrob,
The above code seemed to work fine but I tweaked it according to your feedback to avoid any potential errors. It now looks like this:
function s2_admin_changes( $capability, $menu ) {
// $capability is the core WordPress capability to allow admin pag
// $menu is the title of the page:
// 'user' for access to personal subscription settings
// 'manage' to allow access to the user management screen
// 'settings' to allow access to the plugin settings
// 'send' for access to the Send Email page
// identify the menu you are changing capability for first
// then return a new capability
if ( $menu == 'manage' ) {
return 'read';
}
return $capability;
}
add_filter('s2_manage_options', 's2_admin_changes', 10, 2);
Great support like yours is ideal for those of us learning to adjust to WordPress ?? Thank you!