Making WordPress.org


Ignore:
Timestamp:
07/05/2018 10:39:54 PM (8 years ago)
Author:
coreymckrill
Message:

WordCamp Reports: Exclude specific sites from report results

Some sites are for testing purposes, and may contain data that would skew
report results if it was included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/index.php

    r6662 r7376  
    311311
    312312add_action( 'plugins_loaded', __NAMESPACE__ . '\register_file_exports' );
     313
     314/**
     315 * A list of IDs for sites that should not be included in report results.
     316 *
     317 * @return array
     318 */
     319function get_excluded_site_ids() {
     320    return array(
     321        206, // 2016.testing
     322        928, // 2017.testing
     323    );
     324}
Note: See TracChangeset for help on using the changeset viewer.