Monday, 26 April 2021

wordpress remove quick edit custom post type


wordpress remove quick edit custom post type

It is safe to say that you are searching for an approach to eliminate the alter, view, rubbish, and fast alter joins that you see when you mouse over a post? While there's likely a module for this, we have made a fast code piece that you can use to eliminate alter, view, waste, and speedy alter joins inside posts administrator in WordPress.


add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 );

function remove_row_actions( $actions )

{

    if( get_post_type() === 'post' )

        unset( $actions['edit'] );

        unset( $actions['view'] );

        unset( $actions['trash'] );

        unset( $actions['inline hide-if-no-js'] );

    return $actions;

}



Before



After




No comments:

Post a Comment