Making WordPress.org


Ignore:
Timestamp:
05/24/2017 10:50:47 PM (9 years ago)
Author:
coreymckrill
Message:

WordCamp: Add organizer reminder trigger for pre-planning status

Fixes #2346
Props nvwd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php

    r5356 r5512  
    1313        public function __construct() {
    1414                $this->triggers = array(
     15                        'wcor_approved_for_pre_planning' => array(
     16                                'name'     => 'WordCamp approved for pre-planning',
     17                                'actions'  => array(
     18                                        array(
     19                                                'name'       => 'wcpt_approved_for_pre_planning',
     20                                                'callback'   => 'send_trigger_approved_for_pre_planning',
     21                                                'priority'   => 10,
     22                                                'parameters' => 1,
     23                                        ),
     24                                ),
     25                        ),
     26
    1527                        'wcor_added_to_pending_schedule' => array(
    1628                                'name'     => 'WordCamp added to pending schedule',
    … …  
    629641
    630642        /**
     643         * Sends e-mails hooked to the wcor_approved_for_pre_planning trigger.
     644         *
     645         * This fires when a WordCamp has been approved for pre-planning.
     646         *
     647         * @param WP_Post $wordcamp
     648         */
     649        public function send_trigger_approved_for_pre_planning( $wordcamp ) {
     650                $this->send_triggered_emails( $wordcamp, 'wcor_approved_for_pre_planning' );
     651        }
     652
     653        /**
    631654         * Sends e-mails hooked to the wcor_added_to_pending_schedule trigger.
    632655         *
Note: See TracChangeset for help on using the changeset viewer.