Making WordPress.org


Ignore:
Timestamp:
01/15/2019 09:06:15 AM (8 years ago)
Author:
vedjain
Message:

WCPT: Send notifications to community-events or community-team slack channel on status changes in WordCamp/Meetup applications

Whenever a WordCamp/Meetup application is received, accepted or declined, we will send out notifications. This will help in surfacing interesting changes happening in the community.
This is also discussed in ​https://make.wordpress.org/community/2018/12/24/slack-notifications-for-wordcamp-and-meetup-application-updates/

File:
1 edited

Legend:

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

    r7619 r8083  
    1515
    1616        static function get_event_label() {
    17                 __( 'WordCamp', 'wordcamporg' );
     17                return __( 'WordCamp', 'wordcamporg' );
    1818        }
    1919
    … …  
    158158
    159159        /**
     160         * Gets default status of new WordCamp application
     161         *
     162         * @return string
     163         */
     164        public static function get_default_status() {
     165                return WCPT_DEFAULT_STATUS;
     166        }
     167
     168        /**
     169         * Public report URL for WordCamp applications.
     170         *
     171         * @return string
     172         */
     173        public static function get_application_report_url() {
     174                return "https://central.wordcamp.org/reports/application-status/";
     175        }
     176
     177        /**
    160178         * Create a WordCamp post from an application
    161179         *
    … …  
    186204                add_post_meta( $post_id, '_application_data', $data );
    187205                add_post_meta( $post_id, '_application_submitter_ip_address', $_SERVER['REMOTE_ADDR'] );
     206
    188207
    189208                add_post_meta(
    … …  
    231250        function get_organizer_email() {
    232251                if ( isset( $this->post ) && isset( $this->post->ID ) ) {
    233                         return get_post_meta( $this->post->ID, 'q_1079059_email' );
     252                        return get_post_meta( $this->post->ID, 'Email Address', true );
    234253                }
    235254        }
    … …  
    242261        function get_event_location() {
    243262                if ( isset( $this->post ) && isset( $this->post->ID ) ) {
    244                         return get_post_meta( $this->post->ID, 'q_1079103_wordcamp_location' );
     263                        return get_post_meta( $this->post->ID, 'Location', true );
    245264                }
    246265        }
Note: See TracChangeset for help on using the changeset viewer.