How to remove "Quick edit" option in "register_post_meta" list page

I am using register_post_type in list page automatically it is four actions Edit/Quick Edit/trash/View. I want to remove "Quick edit" option from list page. How I can do this.

Answers


/*------------------------------------------------------------------------------------
    remove quick edit for custom post type videos just to check if less mem consumption
------------------------------------------------------------------------------------*/
add_filter( 'post_row_actions', 'remove_row_actions', 10, 2 );
function remove_row_actions( $actions, $post )
{
  global $current_screen;
    if( $current_screen->post_type != 'videos' ) return $actions;
    unset( $actions['edit'] );
    unset( $actions['view'] );
    unset( $actions['trash'] );
    unset( $actions['inline hide-if-no-js'] );
    //$actions['inline hide-if-no-js'] .= __( 'Quick Edit' );

    return $actions;
}

It worked for me check with yours


Need Your Help

ionic ng-show working in browser but not on android/ios

javascript android ios angularjs ionic

i'm facing an annoying issue that i'm not able to solve, this code works perfectly in the browser but not on the android/ios devices: