Admin Post List Only Show One Category

I found a hacky solution involving redirecting the user: if ((basename($_SERVER[‘SCRIPT_NAME’]) == ‘edit.php’)) { // your code here $author = wp_get_current_user(); if(isset($author->roles[0])){ $current_role = $author->roles[0]; }else{ $current_role=”no_role”; } if($current_role == ‘ai1ec_event_assistant’ && ($_GET[‘post_type’]==”&&$_GET[‘category_name’]==”)){ header(“Location:/wp-admin/edit.php?category_name=events-list”); } }

Plugin PHP write permissions

You will never be able to guarantee this functionality. Filesystem level permissions are ultimately beyond the power of PHP, and thus, WordPress. Though you can try and it may work on some systems/configurations there is no way to guarantee it and nothing you can do if the system will not allow you to change permissions. …

Read more

SSH vs WordPress

Checking what permissions you are actually setting is always a good idea before just doing so. 644 = Owner Read/Write, Group Read, Others Read 664 = Owner Read/Write, Group Read/Write, Others Read 4 – Read, 2 – Write, 1 – Execute You can see from sequence above 644 the first number 6 would be 4+2, …

Read more