Remove the author name and author archive URL WordPress includes when other sites embed your posts.
add_filter( 'oembed_response_data', function ( array $data ): array {
unset( $data['author_name'], $data['author_url'] );
return $data;
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
When someone embeds your post on another site, WordPress answers a public oEmbed request with the post’s title, an excerpt and the author’s name and archive URL. The URL often contains the author’s username. This snippet removes the author fields.
The oembed_response_data filter receives the data WordPress returns from /wp-json/oembed/1.0/embed. Removing author_name and author_url leaves the title, thumbnail and HTML, so embeds still work.
Open yoursite.com/wp-json/oembed/1.0/embed?url= followed by one of your post URLs. The JSON should have no author_name or author_url.