• Resolved Frutke

    (@frutke)


    How can I tweak this plugin to hide Archived sites in the generated report?

    Is it as simple as editing line 487 of class-plugin-activation-status.php with something like this (within the get_blogs() function)?
    return $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs} WHERE archived <> 1 ORDER BY blog_id" );

    I’ve just Archived around 5600 sites on my multisite. I suspect that many of those sites were the only ones using several (now abandoned) plugins.

Viewing 1 replies (of 1 total)
  • Thread Starter Frutke

    (@frutke)

    I went a bit further and specifically excluded Spam, Deleted and Archived sites. Seems to work just fine.

    return $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs} WHERE spam <> 1 AND deleted <> 1 AND archived <> 1 ORDER BY blog_id" );

Viewing 1 replies (of 1 total)
  • The topic ‘hide Archived sites?’ is closed to new replies.