Allow contributors to edit their own images

You can use WP Users Media plugin: https://wordpress.org/plugins/wp-users-media/ From description: … disable the ability for users to access other members files and attachments through the Media Button and Featured Image sections…

How to allow editors to only edit certain categories?

You can hook into the pre_post_update action hook, and check both post’s category and editor. Here’s a quick example: // Hook to save_post to do some checks add_action( ‘pre_post_update’,’wpse315124_save_post_check’ ); function wpse315124_save_post_check( $post_id, $post_data ){ // Check user’s role and post’s category if( has_category ( ‘some-category’, $post_id ) && current_user_can( ‘editor’ ) ) { // … Read more

How to hide a field of the editor by default

Here are a couple options. You could just create a stylesheet that loads in the admin area, and enable that for certain users if needed. Here is an example of loading a stylesheet in the admin for users with the role of “shopmanager”. function my_admin_styles(){ $user = wp_get_current_user(); if( ! empty($user) && count(array_intersect([“shop_manager”], (array) $user->roles … Read more

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