Can you network activate WP Smush Pro?


Is it ok to network activate WP Smush Pro?


  • Vaughan
    • Support/SLS MockingJay

    Hi Nigel,

    Hope you’re well?

    Yes it’s perfectly fine to network activate, but there isn’t exactly any network settings, so all it will do is activate it on each individual subsite automatically. Each site will still have it’s own unique settings for it.

    Hope this helps

  • Renato
    • Design Lord, Child of Thor

    Hello, Nigel

    You can force-activate WP Smush for original images and the lossy compression on all subsites (and also hide WP Smush submenu from the Media menu) – after Network activating it – using this snippet:

    add_action( 'admin_head', 'wp_smush_pro_force_activate', 999 );

    function wp_smush_pro_force_activate() {
    global $pagenow;
    if ( is_admin() && ! is_network_admin() && $pagenow == "index.php" ) {
    update_option( 'wp-smush-auto', 1, 'yes' );
    update_option( 'wp-smush-original', 1, 'yes' );
    update_option( 'wp-smush-lossy', 1, 'yes' );
    update_option( 'wp-smush-backup', 0, 'yes' );
    update_option( 'wp-smush-nextgen', 1, 'yes' );
    remove_submenu_page( 'upload.php', 'wp-smush-bulk' );

    If you do not want to hide it from menu, just remove the line that starts with “remove_submenu_page” from the snippet code.

    You can also change the option values if you prefer. They are listed in the same order you do see in the WP Smush page. 1 means enabled, 0 means disabled. Note: do not change the ‘yes’ value. It’s supposed to be always as this!

    If you’re not used to manually insert snippets on your website and/or want to be “upgrade-safe”, you can create & network-activate this snippet using this very useful plugin:

    Should you have any question, please do not hesitate to ask :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.