• Resolved Eric Karkovack

    (@karks88)


    Hi, I’ve got a multisite network that uses FooGallery across several sites. We also use the Classic Editor. I noticed after updating that I now have to manually set the Classic Editor button to appear on each site.

    Is there a way to do this on a network-wide basis? For example, a snippet to place inside wp-config.php or a custom plugin?

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

    (@bradvin)

    hey @karks88

    You can add this code to override the default:



    add_filter( 'foogallery_defaults', 'override_foogallery_defaults' );

    function override_foogallery_defaults( $defaults ) {

    $defaults['hide_editor_button'] = 'off';

    return $defaults;

    }

    Add it to your functions.php or similar.

    This will only work if the settings have not been saved already, or if there is no value saved for that setting

    Thread Starter Eric Karkovack

    (@karks88)

    Thanks, @bradvin! I’ll give this a try.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enable Classic Editor Button by Default’ is closed to new replies.