Changeset 2035 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/class-list-table.php
- Timestamp:
- 11/03/2015 07:18:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/class-list-table.php
r2008 r2035 21 21 'amount' => 'Amount', 22 22 'method' => 'Method', 23 // 'vendor' => 'Vendor',24 23 'attachments' => 'Attachments', 25 'event' => 'Event',26 24 ); 27 25 } … … 98 96 99 97 $sql .= $where . $orderby . $limit; 100 // echo $sql;101 98 102 99 $this->items = $wpdb->get_results( $sql ); … … 193 190 * Note: runs in a switch_to_blog() context. 194 191 */ 195 public function column_vendor( $request ) {196 $vendor = get_post_meta( $request->ID, '_camppayments_vendor_name', true );197 return $vendor;198 }199 200 /**201 * Note: runs in a switch_to_blog() context.202 */203 192 public function column_attachments( $request ) { 204 193 $attachments = get_children( array( 'post_parent' => $request->ID ) ); … … 213 202 return implode( '', $output ); 214 203 } 215 216 /**217 * Note: runs in a switch_to_blog() context.218 */219 public function column_event( $request ) {220 return sprintf( '<a href="%s" target="_blank">%s</a>', esc_url( home_url( '/' ) ), esc_html( get_bloginfo( 'name' ) ) );221 }222 204 }
Note: See TracChangeset
for help on using the changeset viewer.