Last active
August 11, 2020 22:10
-
-
Save thetwopct/e6b78ee98d0bad22860e29e0839c6fbb to your computer and use it in GitHub Desktop.
Disable WordPress Block Directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable Block Directory | |
add_action( | |
'plugins_loaded', | |
function() { | |
remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' ); | |
remove_action( 'enqueue_block_editor_assets', 'gutenberg_enqueue_block_editor_assets_block_directory' ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment