Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress Remove Block Suggestions when viewing the Block Directory in WP Admin.
// Remove Block Suggestions in wp-admin Block Directory
function chuckdev_remove_block_directory() {
"wp.domReady( () => wp.plugins.unregisterPlugin( 'block-directory' ) )"
add_action( 'admin_enqueue_scripts', 'chuckdev_remove_block_directory' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment