Disable Openverse integration by filtering the block editor settings passed from PHP to JavaScript during editor initialization. This removes the Openverse media category from the inserter interface.
Filter block_editor_settings_all
and set enableOpenverseMediaCategory
to false within the settings array, then return the modified settings to disable the feature.
This approach removes external media integration while preserving all local media library functionality, maintaining normal WordPress media management workflows.
The setting change prevents Openverse access while keeping standard media insertion, upload, and management features fully functional for local content.