Remove admin role from the “Author” user listing on individual post screen
This is the answer for my above Question add_action(‘pre_user_query’,’ap_pre_user_query’); function ap_pre_user_query($user_search) { $user = wp_get_current_user(); if ($user->ID!=1) { // Is not administrator, remove administrator (you can add any user-ID) global $wpdb; global $user_ID; //Fetch the custom field value added in user section $meta = get_user_meta( $user_ID ); $selected_author_id = unserialize($meta[‘select_md’][0]); $count = count($selected_author_id); //to the … Read more