Making WordPress.org

Changeset 702


Ignore:
Timestamp:
06/12/2014 11:00:05 PM (12 years ago)
Author:
iandunn
Message:

WordCamp Organizer Reminders: Add trigger for when a camp is added to planning schedule.

File:
1 edited

Legend:

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

    r701 r702  
    1313        public function __construct() {
    1414                $this->triggers = array(
     15                        'wcor_added_to_pending_schedule' => array(
     16                                'name'     => 'WordCamp added to pending schedule',
     17                                'actions'  => array(
     18                                        array(
     19                                                'name'       => 'wcpt_added_to_planning_schedule',
     20                                                'callback'   => 'send_trigger_added_to_pending_schedule',
     21                                                'priority'   => 10,
     22                                                'parameters' => 1,
     23                                        ),
     24                                ),
     25                        ),
     26
    1527                        'wcor_added_to_schedule' => array(
    16                                 'name'     => 'WordCamp Added to final schedule',
     28                                'name'     => 'WordCamp added to final schedule',
    1729                                'actions'  => array(
    1830                                        array(
     
    2638
    2739                        'wcor_organizer_added_to_central' => array(
    28                                 'name'     => 'Lead Organizer Account added to Central',
     40                                'name'     => 'Lead organizer account added to Central',
    2941                                'actions'  => array(
    3042                                        array(
     
    429441
    430442        /**
     443         * Sends e-mails hooked to the wcor_added_to_pending_schedule trigger.
     444         *
     445         * This fires when a WordCamp is added to the pending schedule.
     446         *
     447         * @param WP_Post $wordcamp
     448         */
     449        public function send_trigger_added_to_pending_schedule( $wordcamp ) {
     450                $this->send_triggered_emails( $wordcamp, 'wcor_added_to_pending_schedule' );
     451        }
     452
     453        /**
    431454         * Sends e-mails hooked to the wcor_added_to_schedule trigger.
    432455         *
Note: See TracChangeset for help on using the changeset viewer.