I don’t think it is possible in a nice user friendly way. WordPress admin screen and the customizer assume that any widget can get into any sidebar and will show them as part of the admin, so even if you filter out the widgets you do not want, it will probably create a lot of WTF moments for the user.
I would just suggest not to go that way. If you need to restrict the widgets and you can not count on the user to have self control, then the sidebar/widgets combo might just not be a good answer for what you try to do.
Related Posts:
- Text Widget creates a
- HowTo: Add Class to Sidebar Widget List-Items
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget
- register_sidebar ignores ‘id’ and ‘class’
- Add div class to only one widget
- What is the use case for the “Class” parameter in register_sidebar?
- How to avoid widgets added to sidebar on theme activation?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Hooking Into Widget Output Loop
- Why do none of my widgets have a title?
- Widget area inside a widget
- How to add multiple custom widget areas
- More flexible sidebar and widget management
- WordPress widget new instance creates content duplicates
- duplicate sidebar
- Removing custom widget area WordPress 4.4 [closed]
- Insert Widget option into mark-up with register_sidebar
- Widgets not expanding on wordpress 3.3 widget dashbord
- Add before_content and after_content to register_sidebar
- I can’t get my custom widget area to show on my WordPress site
- Cannot save widgets in custom sidebars
- WordPress widget/sidebar dividers?
- adding multiple sidebars on pages
- wp_register_sidebar_widget() disappered my Widgets submenu – what am I doing wrong?
- Toggle option in sidebar widgets
- Can’t see widget areas in my customizer
- Widgets not activated alert after using get_sidebar()
- Custom page sidebar using Template dropdown box
- Can you target a widget_class in a register_sidebar?
- Copy Widget Settings because of changed IDs
- Custom Sidebar only on single post
- Register sidebar ‘before’ and ‘after’ html as div rather than li tags
- How to pass a special CSS class into widget li
- Widget title markup in register_sidebar
- Add SideBar/Widgets Just Below the Post
- Add class to on sidebar widget
- Save button is not working on custom widget
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- widgets not working
- Is there a way to dump all registered sidebar/widget?
- Sidebar widgets – dynamic CSS : problem with widget-title
- How to customize wordpress sidebar widget
- Why is registering a sidebar for each page causing my sidebars to reset?
- activate custom sidebar widgets
- How to use register_sidebar’s ‘before_widget’ unique id generator into its other parameters like ‘before_title’?
- After adding widget the style is messing up
- Widget is displayed in two places
- Siderbar implementation with collapsible bootstrap cards
- How to create sidebar from “scratch”?
- My widgets do not save
- How to get sidebar widgets in leftsidebar template
- Dynamic sidebar areas not working on the Theme Customizer
- How Can I Replicate & Register a Widget from the Child Theme
- Create new sidebars trough admin post/page metabox
- Any reason why widgets/menus get emptied when I updated custom theme code?
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- $before/after_widget/title not displaying anything
- wp_register_sidebar_widget in loop within a plugin?
- register_sidebar() will not wrap an element properly
- key( $GLOBALS[‘wp_registered_sidebars’] ) is always showing the same value
- An issue with register_sidebar and the admin interface
- Unique widget id in sidebar
- Add the title of a widget as an ID – for anchor links
- is it possible to create custom widgets page in admin?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- How do I get a list of built-in data sets in R?
- How to one hot encode several categorical variables in R
- How can I change the color of my prompt in zsh (different from normal text)?
- mkdir c++ function
- C’s printf and fprintf(stdout,) are not printing
- Terminating app due to uncaught exception ‘NSUnknownKeyException’
- WP_Widget deprecated error in WordPress V4.3
- What is the quickest way to make a widget?
- How to parse wordpress options json
- get_intermediate_image_sizes Get the Size Names but How Do I Get the Sizes?
- how to extend a WP_widget twice
- Inserting shortcode [stream /] into a Text widget
- List authors with posts in a category
- How to check if searchform.php is being included as widget?
- wp_count_posts, wp_count_terms and wp_count_comments for specific user?
- what is option_name on database that store the information of current initiate widget in frontend sidebar?
- When adding a widget, what kind of widget should I used to add images and text and styling?
- Prev / Next menu item
- Create a widget to use shortcode?
- Style the archives/category sidebar widget via theme
- Rendering javascript in render_callback php Code
- Save Widget State Between Theme Swaps?
- I can’t edit my homepage – the page editor is just blank [closed]
- How do i place same widgets multiple time by default on theme activation?
- Show a widget as a sidebar fallback
- Error with function in functions.php?
- change widget to display excerpt instead of content
- How to register a widget when saving a post?
- Add a select-option to the default widgets
- Add a widget to a static front page
- Add widget area from visual editor
- How to list categories by page id in wordpress
- Does current page contain widget or sidebar
- Adding Widgets to Reactor Theme (based on Foundation 4)
- trying to Change to wp_register_sidebar_widget