/** * 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() ); } );