Should I change the default file and folder permissions?

As the article suggests, it’s only a ‘possible’ permissions scheme. So there is no quick answer to ‘yes’ or ‘no’ in terms of settings the correct permission for files/folders in your particular hosting environment. My suggestion is to keep it as ‘out-of-the-box’ unless you run into an issue which requires you to adjust permissions in … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)