Remove Posts Quick Edit link for specific user role? WP 3.3

Based on this answer, yours was easy:

add_filter('post_row_actions',     'wpse_49800_qe_download_link', 10, 2);
add_filter('page_row_actions',     'wpse_49800_qe_download_link', 10, 2);

// for Custom Post Types
// add_filter('cpt_name_row_actions', 'wpse_49800_qe_download_link', 10, 2);

function wpse_49800_qe_download_link($actions, $post) {
    unset($actions['inline hide-if-no-js'],$actions['trash']);
    return $actions; 
}

Notice that you don’t mention the 'Trash', so it’s being removed as well.


Plugin of interest

Adminimize is able to hide lots of stuff from the Admin panel based on user roles.

Leave a Comment