This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Limit available Widgets

10 years ago · Last reply by Paul 10 years ago

I want to limit the widgets in “Add Widgets” to only the widgets are necessary for a project.
Is it possible to customize it somehow like in the “siteoriging widgets bundle” ?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Paul 10 years, 8 months ago

    To remove all or specific widgets you can use this:

    function so_widgets_filter( $widgets )
    {
    	$widgets = array(); // delete all widgets
    	return $widgets;
    }
    add_filter('siteorigin_panels_widgets', 'so_widgets_filter');

    To just remove recommended widgets:

    remove_filter('siteorigin_panels_widgets', 'siteorigin_panels_add_recommended_widgets');

    Hope that helps! It worked great for me.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread