1 2/** 3 * Modify style variants. 4 */ 5wp.domReady(function () { 6 7 const allowedEmbedBlocks = [ 8 'vimeo', 9 'youtube', 10 ]; 11 12 wp.blocks.getBlockVariations('core/embed').forEach(function (blockVariation) { 13 if (-1 === allowedEmbedBlocks.indexOf(blockVariation.name)) { 14 wp.blocks.unregisterBlockVariation('core/embed', blockVariation.name); 15 console.log('unregister ' + blockVariation.name); 16 } 17 }); 18});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.