Disable block directory integration by removing WordPress’s automatic asset loading for the block directory interface. This prevents the search and installation interface from appearing in the block inserter.
Use remove_action('enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets')
to disable the functionality that enables block directory searching and installation.
This approach removes the interface while maintaining normal plugin installation workflows through the WordPress admin, preserving administrative control over plugin management.
The removal prevents automatic plugin installation while maintaining all existing functionality for blocks already installed through traditional methods.