autoship_cloud_main_page_security

(src > admin.php) Can be used to adjust who sees the Main menu option and Settings page. The filter takes the current capability needed for a user to see the Autoship Cloud menu option and Settings page. By Default the Administrator capability is required.

Example

// allow contributor role to see main page content
function allow_contributor($capability){
    return 'edit_posts';
}
add_filter('autoship_cloud_main_page_security', 'allow_contributor', 10, 1);

Still need help? Contact Us Contact Us