Making WordPress.org


Ignore:
Timestamp:
02/25/2015 12:08:40 AM (10 years ago)
Author:
iandunn
Message:

WordCamp Organizer Reminders: Add option to send to a region's camera wrangler.

File:
1 edited

Legend:

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

    r1032 r1309  
    9292        $send_days_after_pending = get_post_meta( $post->ID, 'wcor_send_days_after_pending', true );
    9393        $which_trigger           = get_post_meta( $post->ID, 'wcor_which_trigger', true );
    94        
     94
    9595        ?>
    9696
     
    112112                    <th><input id="wcor_send_mes" name="wcor_send_where" type="radio" value="wcor_send_mes" <?php checked( $send_where, 'wcor_send_mes' ); ?>></th>
    113113                    <td colspan="2"><label for="wcor_send_mes">The WordCamp's Multi-Event Sponsors</label></td>
     114                </tr>
     115
     116                <tr>
     117                    <th><input id="wcor_send_camera_wrangler" name="wcor_send_where" type="radio" value="wcor_send_camera_wrangler" <?php checked( $send_where, 'wcor_send_camera_wrangler' ); ?>></th>
     118                    <td colspan="2"><label for="wcor_send_camera_wrangler">The Region's Camera Kit Wrangler</label></td>
    114119                </tr>
    115120
     
    363368    protected function save_post_meta( $post, $new_meta ) {
    364369        if ( isset( $new_meta['wcor_send_where'] ) ) {
    365             if ( in_array( $new_meta['wcor_send_where'], array( 'wcor_send_organizers', 'wcor_send_sponsor_wrangler', 'wcor_send_mes', 'wcor_send_custom' ) ) ) {
     370            if ( in_array( $new_meta['wcor_send_where'], array( 'wcor_send_organizers', 'wcor_send_sponsor_wrangler', 'wcor_send_mes', 'wcor_send_camera_wrangler', 'wcor_send_custom' ) ) ) {
    366371                update_post_meta( $post->ID, 'wcor_send_where', $new_meta['wcor_send_where'] );
    367372            }
Note: See TracChangeset for help on using the changeset viewer.