Making WordPress.org

Changeset 3833


Ignore:
Timestamp:
08/20/2016 02:23:51 AM (8 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Add function for getting statuses of active camps.

File:
1 edited

Legend:

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

    r3727 r3833  
    259259
    260260    /**
     261     * Get the statuses for camps that are currently active
     262     *
     263     * @return array
     264     */
     265    public static function get_active_wordcamp_statuses() {
     266        return array_merge(
     267            array(
     268                'wcpt-approved-pre-pl',
     269                'wcpt-needs-email',
     270                'wcpt-needs-site',
     271                'wcpt-needs-polldaddy',
     272                'wcpt-needs-mentor',
     273                'wcpt-needs-pre-plann',
     274            ),
     275            \WordCamp_Loader::get_pre_planning_post_statuses(),
     276            array( 'wcpt-scheduled' )
     277        );
     278    }
     279
     280    /**
    261281     * Get the milestones that correspond to each status
    262282     *
Note: See TracChangeset for help on using the changeset viewer.