You can add a filter to the hook named post_row_actions
.
Here’s a sample code: (make sure to replace my-cpt
with the actual post type name)
add_filter( 'post_row_actions', 'my_cpt_row_actions', 10, 2 );
function my_cpt_row_actions( $actions, $post ) {
if ( 'my-cpt' === $post->post_type ) {
// Removes the "Quick Edit" action.
unset( $actions['inline hide-if-no-js'] );
}
return $actions;
}