Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global options when network activated #115

Open
adamradocz opened this issue Aug 5, 2020 · 1 comment
Open

Global options when network activated #115

adamradocz opened this issue Aug 5, 2020 · 1 comment

Comments

@adamradocz
Copy link

It would be great if the options were global when the plugin is network activated. I want to use the same settings on all sites, and setting them up one-by-one is tedious.

@jmslbam
Copy link

jmslbam commented Dec 14, 2020

yupp, same request here.

As an alternative I am trying to force enable all options "pre_option_rocket_lazyload_options" because I have a multisite site with a lot of subsites. But the following snippet doesn't work. I used pre_option_rocket_lazyload_options and option_rocket_lazyload_options. Neiter one worked...

add_filter( 'pre_option_rocket_lazyload_options', function(){

return [
    'images' => '1',
    'iframes' => '1',
    'youtube' => '1',
];

});

So either global settings or if you could double check if it can be overwritten through pre_option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants