• Hi there,

    First, many thanks for awesome plugin, nice work!

    I have a question, is there anyway that we can force active everything in the plugin after installed ? I’m trying to add the plugin to my theme via TGM Plugin Activation but somehow you will have to take an extra step and activate them manually.

    Regards,

    Adam.

    https://www.ads-software.com/plugins/so-widgets-bundle/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SiteOrigin

    (@gpriday)

    Hi Adam

    Very good question. At the moment, I think the best way to do this is to filter the siteorigin_widgets_default_active array. You could also filter siteorigin_widgets_active_widgets, but the only problem there is that users wouldn’t be able to disable any widgets from that point on.

    The filter siteorigin_widgets_default_active should return an array of all the widgets you want active. For now, you’d just need to create a manual array by looking at all the folder names in the widgets folder.

    Something along the lines of:

    function mytheme_filter_siteorigin_default_widgets( $widgets ){
       $widgets = array(
          'button',
          'contact',
          'cta',
          // Etc.
       );
       return $widgets;
    }
    add_filter('siteorigin_widgets_default_active', 'mytheme_filter_siteorigin_default_widgets');
    Thread Starter adamboy

    (@adamboy)

    Hi Greg,

    I’m quite amazed of your fast lighting response ?? and thank you very much for an answer. I’ve tried several premium Page Builder plugins out there but look like this one suites me best (forget about Visual Composer as we already known how ugly the code is).

    Thanks again and congras in your awesome work :).

    Best regards,

    Adam.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Question] Auto active everything after installed’ is closed to new replies.