Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'sixtenpressblockeditor_disable_blocks', 'leaven_disallowed_blocks' );
/**
* Define the blocks we are disallowing.
*
* @return array
*/
function leaven_disallowed_blocks( $blocks ) {
return array_merge(
$blocks,
array(
'core/verse',
'core-embed/animoto',
'core-embed/cloudup',
'core-embed/collegehumor',
'core-embed/crowdsignal',
'core-embed/dailymotion',
'core-embed/funnyordie',
'core-embed/hulu',
'core-embed/imgur',
'core-embed/issuu',
'core-embed/kickstarter',
'core-embed/meetup-com',
'core-embed/mixcloud',
'core-embed/reverbnation',
'core-embed/screencast',
'core-embed/scribd',
'core-embed/slideshare',
'core-embed/smugmug',
'core-embed/ted',
'core-embed/tumblr',
'core-embed/videopress',
'core-embed/wordpress-tv',
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.