Making WordPress.org


Ignore:
Timestamp:
03/30/2016 12:10:55 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp Post Type: Introduce two new methods to get status sets for scheduled and pre-planning WordCamps.

File:
1 edited

Legend:

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

    r2845 r2849  
    152152
    153153        /**
     154         * Get post statuses for WordCamps on schedule.
     155         *
     156         * @return array Post status names.
     157         */
     158        public static function get_public_post_statuses() {
     159                return array(
     160                        'wcpt-scheduled',
     161                        'wcpt-needs-debrief',
     162                        'wcpt-debrief-schedul',
     163                        'wcpt-closed',
     164
     165                        // back-compat
     166                        'public',
     167                );
     168        }
     169
     170        /**
     171         * Get post statuses for WordCamps on pre-planning schedule.
     172         *
     173         * @return array Post status names.
     174         */
     175        public static function get_pre_planning_post_statuses() {
     176                return array(
     177                        'wcpt-pre-planning',
     178                        'wcpt-needs-budget-re',
     179                        'wcpt-budget-rev-sche',
     180                        'wcpt-needs-contract',
     181                        'wcpt-needs-fill-list',
     182                        'wcpt-needs-schedule',
     183
     184                        // back-compat
     185                        'pending',
     186                );
     187        }
     188
     189        /**
    154190         * Get the milestones that correspond to each status
    155191         *
Note: See TracChangeset for help on using the changeset viewer.