You appear to be a bot. Output may be restricted
Description
Process the bulk actions
Usage
$void = EDD_Payment_History_Table::process_bulk_action();
Parameters
Returns
void
Source
File name: easy-digital-downloads/includes/admin/payments/class-payments-table.php
Lines:
1 to 61 of 61
public function process_bulk_action() { $ids = isset( $_GET['payment'] ) ? $_GET['payment'] : false; $action = $this->current_action(); if ( ! is_array( $ids ) ) $ids = array( $ids ); if( empty( $action ) ) return; foreach ( $ids as $id ) { // Detect when a bulk action is being triggered... if ( 'delete' === $this->current_action() ) { edd_delete_purchase( $id ); } if ( 'set-status-publish' === $this->current_action() ) { edd_update_payment_status( $id, 'publish' ); } if ( 'set-status-pending' === $this->current_action() ) { edd_update_payment_status( $id, 'pending' ); } if ( 'set-status-processing' === $this->current_action() ) { edd_update_payment_status( $id, 'processing' ); } if ( 'set-status-refunded' === $this->current_action() ) { edd_update_payment_status( $id, 'refunded' ); } if ( 'set-status-revoked' === $this->current_action() ) { edd_update_payment_status( $id, 'revoked' ); } if ( 'set-status-failed' === $this->current_action() ) { edd_update_payment_status( $id, 'failed' ); } if ( 'set-status-abandoned' === $this->current_action() ) { edd_update_payment_status( $id, 'abandoned' ); } if ( 'set-status-preapproval' === $this->current_action() ) { edd_update_payment_status( $id, 'preapproval' ); } if ( 'set-status-cancelled' === $this->current_action() ) { edd_update_payment_status( $id, 'cancelled' ); } if( 'resend-receipt' === $this->current_action() ) { edd_email_purchase_receipt( $id, false ); } do_action( 'edd_payments_table_do_bulk_action', $id, $this->current_action() ); } }