Removing Quick Edit option from wordpress rows


Removing Quick Edit option from wordpress rows

Add this to the theme function File.
function remove_stuff ( $actions ) {
if( !is_super_admin() && !current_user_can( 'edit_theme_options' ) ) {
unset($actions['inline hide-if-no-js']);
return $actions;
} else {
return $actions;
}
}
add_filter ( 'page_row_actions' , 'remove_stuff' );
add_filter ( 'post_row_actions' , 'remove_stuff' );

Comments & Responses

You must be logged in to post a comment.