How can I allow user to select minimum privilege smartly

You are using the right WP function but unfortunately not passing the right parameter to make this work for you. current_user_can() accepts capabilities as well as roles as parameters. In the above you are using roles and not capabilities. You can use capabilities to make it work. For example, if you want the minimum privilege … Read more

How can I have different groups of editors only allowed to edit certain parent+subpages?

UPDATE – this is easy to do with the press permit plugin, I recommend it for any setup like this To get this working I had to do a couple of things: Default all pages/posts/categories ‘revisor’ (via Revisionary plugin) users to be restricted to ‘WP_Administrators’ Create a “User Group” for each department ie: ‘Conference Services … Read more

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