Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi guys,
Is it possible to disable some of the widgets available in the options? Is there a filter which can be used for this? I can’t see any mention of this in the developer docs, but wanted to double check.
Thanks!
Phil
Hi Phil,
You sadly cannot disable widgets via the options but you can disable them via a filter – siteorigin_panels_widgets which will allow you to filter the widgets array. Here’s an example of the data you could expect to see in $widgets (which, again, is an array):
Simply unset the widget, for example, WP_Widget_Pages and it’ll hide the widget.
This is perfect, thanks dude!