ss_hide_admin_menu
How to use: add_filter()
Included in: Simply Static Core/Free 3.2.0+
Overview
The ss_hide_admin_menu filter allows you to hide Simply Static's admin menu items. This can be useful if you have specific user roles with limited access or want to add additional checks for enhanced publishing workflows.
Example
The following code snippet allows you to hide the admin menu from all users with the user role "editor":
add_filter( 'ss_hide_admin_menu', function () { $current_user = wp_get_current_user(); if ( in_array( 'editor', $current_user->roles ) ) { return true; } } );