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.

How can i switch on all legacy binded widgets automaticly

9 years ago · Last reply by Alex S 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 2 months ago

    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.

Have a different question or issue?

Start New Thread