How To Disable (or Remove) "All Posts, Published, and Trash" in Dashboard Posts - WordPress Development Stack Exchange

PHOTO EMBED

Wed Sep 08 2021 21:53:07 GMT+0000 (Coordinated Universal Time)

Saved by @richard

/**
 * Force the 'mine' view on the 'edit-post' screen
 */
add_action( 'pre_get_posts', function( \WP_Query $q )
{
    if( 
           is_admin() 
        && $q->is_main_query() 
        && 'edit-post' === get_current_screen()->id 
        && ! current_user_can( 'manage_options' )
    )
        $q->set( 'author', get_current_user_id() ); 
} );
content_copyCOPY

https://wordpress.stackexchange.com/questions/224159/how-to-disable-or-remove-all-posts-published-and-trash-in-dashboard-posts