Changeset 1642
- Timestamp:
- 06/02/2015 07:54:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/multi-event-sponsors.php
r1304 r1642 242 242 } 243 243 244 /** 245 * Retrieve general info for the given sponsors. 246 * 247 * @param array $sponsors 248 * 249 * @return array 250 */ 251 public function get_sponsor_info( $sponsors ) { 252 $info = array(); 253 254 foreach ( $sponsors as $sponsor ) { 255 $info[ $sponsor->ID ]['company_name'] = $sponsor->post_title; 256 $info[ $sponsor->ID ]['sponsorship_levels'] = get_post_meta( $sponsor->ID, 'mes_regional_sponsorships', true ); 257 $info[ $sponsor->ID ]['contact_first_name'] = get_post_meta( $sponsor->ID, 'mes_first_name', true ); 258 $info[ $sponsor->ID ]['contact_last_name'] = get_post_meta( $sponsor->ID, 'mes_last_name', true ); 259 $info[ $sponsor->ID ]['contact_email'] = get_post_meta( $sponsor->ID, 'mes_email_address', true ); 260 } 261 262 return $info; 263 } 244 264 245 265 /**
Note: See TracChangeset
for help on using the changeset viewer.