How to prevent ‘third-party available blocks’ in block inserter…
-
We have very strict guidelines as to what our admins, authors and editors are allowed to use with regard to the blocks within the block editor. Subsequently, our block inserter only shows blocks we’ve either custom built or those from core that we’ve made available via the ‘allowed_blocks’ filter.
I’m not in the block editor enough to know which version of WP introduced the third-party ‘Available Blocks’ feature, but I recently became aware of the fact that when searching from within the block inserter the keywords are being used to populate an ‘Available Blocks’ section within the results list. The blocks advertised in this section all seem to be from third-party’s of which I have no idea where they’re actually being hosted (I’m an in-house developer, so I’m not aware of a block marketplace). The feature was brought to my attention via one of our brand/design directors who was concerned about users with the right permissions installing and using them. I assured him that wouldn’t happen due to underlying installation permissions that would likely block such an event but I’m wondering if there’s any documentation out there yet with regard how to disable the third-party blocks feature itself and in doing so without the use of a plugin.
Outside of looking to disable the feature I’m curious if anybody else finds this feature as potentially troublesome in being ‘enabled’ by default?The screenshot below shows how the third-party blocks are brought up during a block search and where they’re displayed in the inserter…
Link to screenshot – https://www.dropbox.com/scl/fi/3lfojes2mvsmd69dncang/Screen-Shot-2024-10-14-at-10.27.48-AM.png?rlkey=btnv21ywp4r80m0sni6gxyk0t&st=d9dvytal&dl=0
- You must be logged in to reply to this topic.