[ad_1]
How can I hide/remove additional widgets in the WIDGETS page? Tried Gutenberg Block Manager & Block Visibility, but no avail. (See comments)
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
Hi, so I’m trying to hide additional and most unwanted widget. Block Control and Block Visibility only work for Pages. But I need to do the same for the Widgets page.
I even tried a snippet
`add_filter( ‘allowed_block_types’, ‘misha_allowed_block_types’ );`
`function misha_allowed_block_types( $allowed_blocks ) {`
`return array(`
`’core/image’,`
`’core/paragraph’,`
`’core/heading’,`
`’core/embed’,`
`’core/file’`
`);`
But this again only removes the widgets from Posts/Pages and not from the Widgets Panel.
Goal: To make staff only add the required widget to the sidebar area. The only ones I want staff to use are Paragraph and PDF Embedder.
Any help would be appreciated, as I’ve searched the web and tried so many options. Thanks