Created
August 3, 2020 09:53
-
-
Save thetwopct/e86611e220c60cebfcc90b2865ca9371 to your computer and use it in GitHub Desktop.
Remove (Gutenberg) Block Directory from WordPress 5.5+
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
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