Changeset 2837 for sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/wordcamp.php
- Timestamp:
- 03/28/2016 10:55:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/wordcamp.php
r2832 r2837 48 48 if ( isset( $_POST['submit-application'] ) ) { 49 49 create_wordcamp_post( validate_data( $_POST ) ); 50 // todo send a notification email to central?50 // todo email applicant a copy of application w/ the thank you message - just fire trigger and let organizer reminder send it? but how to attach org data? new placeholder? 51 51 $message = "Thank you for your application! We've received it, and we'll contact you once we've had a chance to review it."; // todo run by andrea 52 52 … … 156 156 function create_wordcamp_post( $data ) { 157 157 // Create the post 158 $user = wcorg_get_user_by_canonical_names( $data['q_4236565_wporg_username'] ); 158 $user = wcorg_get_user_by_canonical_names( $data['q_4236565_wporg_username'] ); 159 $statues = \WordCamp_Loader::get_post_statuses(); 159 160 160 161 $post = array( … … 197 198 add_post_meta( $post_id, '_status_change', array( 198 199 'timestamp' => time(), 199 'user_id' => $user->ID, 200 'message' => sprintf( '%s -> %s', 'Application', 'Draft' ), /// todo use get_status_name() when it's ready // todo update with new default status200 'user_id' => $user->ID, // todo check if WP_User first 201 'message' => sprintf( '%s -> %s', 'Application', $statues[ WCPT_DEFAULT_STATUS ] ), 201 202 ) ); 202 203
Note: See TracChangeset
for help on using the changeset viewer.