Making WordPress.org


Ignore:
Timestamp:
11/03/2015 07:18:02 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp.org: Remove vendor and event columns from the Payments dashboard.

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  
    2121            'amount' => 'Amount',
    2222            'method' => 'Method',
    23             // 'vendor' => 'Vendor',
    2423            'attachments' => 'Attachments',
    25             'event' => 'Event',
    2624        );
    2725    }
     
    9896
    9997        $sql .= $where . $orderby . $limit;
    100         // echo $sql;
    10198
    10299        $this->items = $wpdb->get_results( $sql );
     
    193190     * Note: runs in a switch_to_blog() context.
    194191     */
    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      */
    203192    public function column_attachments( $request ) {
    204193        $attachments = get_children( array( 'post_parent' => $request->ID ) );
     
    213202        return implode( '', $output );
    214203    }
    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     }
    222204}
Note: See TracChangeset for help on using the changeset viewer.