Home>Support>How can i switch on all legacy binded widgets automaticly

How can i switch on all legacy binded widgets automaticly

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].

Thank s for this amazing page builder.
Is it possible that all legacy widgets which we have to switch on from the check box in setting are auto switched on.
Thanks and regards

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 6 months ago Alex S
    Hi, I Work Here

    Hi Kunal,

    This is possible, but I seriously wouldn’t recommend doing this. Legacy widgets will be removed in the next major update (PB 3) and at this stage, I’m unsure if a compatibility plugin will be offered due to how long ago legacy widgets were made legacy (at the start of PB 2). Long term, it’s not recommended that you use them and instead actively try to migrate away from them. If you haven’t already, install the SiteOrigin Widgets Bundle. Once installed, please navigate to WP AdminPluginsSiteOrigin Widgets and activate your desired widgets.

    To force this you’ll need to use PHP. Please add the following PHP to a child theme:

    function forcefully_enable_legacy_widgets() {
    	$settings = siteorigin_panels_setting();
    	
    	if ( ! siteorigin_panels_setting( 'bundled-widgets' ) ) {
    		SiteOrigin_Panels_Settings::single()->set( 'bundled-widgets', true );
    	}
    }
    add_action( 'wp', 'forcefully_enable_legacy_widgets', 99 );
    
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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More