Making WordPress.org

Changeset 7692


Ignore:
Timestamp:
09/21/2018 09:20:14 AM (6 years ago)
Author:
vedjain
Message:

WordCamp: Tag meetups requiring wporg username refresh when running the cron.

This will help filter for meetups in which wporg usernames needs to be updated easily.

File:
1 edited

Legend:

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

    r7687 r7692  
    718718
    719719        /**
    720          * Send email containing new meetup organizers to WordCamp Support team.
     720         * Send email containing new meetup organizers to WordCamp Support team. Also adds a tag - `Needs to update Organizer list`
    721721         *
    722722         * @param array $new_meetup_org_data
     
    747747                }
    748748                $template = $template . join( ', ', $meetup_members ) . "<br>";
    749             }
    750             // TODO: Change to email before merging
     749
     750                // Add a tag for meetup
     751                wp_set_object_terms( $post_id, 'Needs to update Organizer list', 'meetup_tags', true );
     752            }
    751753            wp_mail(
    752754                array( 'support@wordcamp.org' ),
Note: See TracChangeset for help on using the changeset viewer.