Restrict the shop_manager role to the WooCommerce Orders Page

I finally found the solution. function checkUserPermissionsInThisScreen(){ if (is_admin()){ $currentUserRoles = wp_get_current_user()->roles; if (in_array(‘shop_manager’, $currentUserRoles)){ $a = get_current_screen(); if ($a->id != ‘edit-shop_order’ && $a->post_type != ‘shop_order’){ wp_die(‘you do not have needed permissions to see this page’); } } } } add_action(‘current_screen’, ‘checkUserPermissionsInThisScreen’);

the_tags only showing when logged in?

The code you posted work just fine , logged in or not . I have confirmed it on my server in multiple locations. There is something else in your theme that is causing it . do you have any other conditional tags there ? like is_admin() is_user_logged_in() or any other ?? Any plugin you installed … Read more

Problem with permissions in wp-content/plugins

Best thing to do is check the WP docs themselves for correct file/folder permissions and how to change them, if needed: http://codex.wordpress.org/Changing_File_Permissions Typically, all files should be owned by your user (ftp) account on your web server, and should be writable by that account. On shared hosts, files should never be owned by the web … Read more