How do I let contributors edit their posts after being approved once?

There is a capability in WordPress called “edit_published_posts”. Contributors do not have this capability by default (refer to the Roles and Capabilities Codex page to see the out-of-box role configurations). You can add this capability to the contributor role with code like this: // get the “contributor” role object $obj_existing_role = get_role( ‘contributor’ ); // … Read more

how to remove some permissions from a shop “manager role” in woocommmerce?

This is treading very close to being off-topic as it asks specifically about a particular plugin, but the answer is quite generic: You can remove the capabilities you don’t need. function remove_cap_wpse_186316(){ remove_cap( ‘yourwoorole’, ‘yourwoocap’ ); remove_cap( ‘yourwoorole’, ‘yourwoocap1’ ); } add_action( ‘admin_init’, ‘remove_cap_wpse_186316’ ); The above is code is for demonstration/experimentation only. Note the … Read more

Add menu page issues (permissions & position)

you can do something like: // create your own page add_menu_page(‘my-page’, ‘My Page’, ‘My Page’, ‘parent-slug’, ‘my_plugin_options’, ”, ’10’); // create the subpage under my-page add_submenu_page(‘parent-slug’, ‘Sidebars’, ‘Sidebars’, ‘manage_options’, __FILE__, array(‘sidebar_generator’,’admin_page’)); Note that the last parameter on add_menu_page is a 10. The higher the number the lower the position of the menu item. HTH

Upgrading problem

Just because you have write access from the ftp user doesn’t mean that the user Apache/PHP is running in has write access. I’d advise you upgrade manually, or check your write permissions and ownership for whichever user Apache is running as on those files.

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