Clean up the inserter by removing embed blocks for services you never use, such as Tumblr, Reddit or Crowdsignal.
add_action( 'enqueue_block_editor_assets', function (): void {
wp_add_inline_script(
'wp-blocks',
"wp.domReady( function () {
var keep = [ 'youtube', 'vimeo', 'twitter', 'spotify' ];
wp.blocks.getBlockVariations( 'core/embed' ).forEach( function ( variation ) {
if ( keep.indexOf( variation.name ) === -1 ) {
wp.blocks.unregisterBlockVariation( 'core/embed', variation.name );
}
} );
} );"
);
} );
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.
The inserter lists more than 30 embed blocks: Amazon Kindle, Crowdsignal, Tumblr, TED and many more. Most sites use two or three. This snippet keeps only the ones you list.
Each embed service is a variation of the core/embed block. When the editor is ready, the script loops over every variation and removes the ones not in your keep list with wp.blocks.unregisterBlockVariation().
The generic Embed block stays, so pasting any supported URL still works.
youtube, vimeo, twitter and wordpress.Search the inserter for “embed”. Only your kept services should be listed.