Stop WordPress contacting every site you link to and pinging update services each time you publish, which speeds up publishing.
// Don't run outgoing pings (pingbacks, trackbacks and update services).
add_action( 'init', function (): void {
remove_action( 'do_pings', 'do_all_pings', 10 );
} );
// Untick "Attempt to notify any blogs linked to from the post".
add_filter( 'pre_option_default_pingback_flag', '__return_zero' );
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 you publish, WordPress contacts every site you linked to (pingbacks), and the services listed under Settings → Writing → Update Services. These requests slow down publishing and rarely do anything useful today.
Outgoing pings run through do_all_pings(), hooked to the do_pings event that WordPress schedules after publishing. Removing it stops pingbacks, trackbacks and update service pings.
The option filter also unticks “Attempt to notify any blogs linked to from the post” in Settings → Discussion, so new posts don’t queue pings in the first place.
Settings → Discussion should show “Attempt to notify any blogs linked to from the post” unticked. Publishing a post with external links should no longer leave _pingme entries in its post meta.