rocket-lazy-load icon indicating copy to clipboard operation
rocket-lazy-load copied to clipboard

Global options when network activated

Open adamradocz opened this issue 4 years ago • 1 comments

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.

adamradocz avatar Aug 05 '20 08:08 adamradocz

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.

jmslbam avatar Dec 14 '20 17:12 jmslbam