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 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
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
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!