You appear to be a bot. Output may be restricted
Description
Retrieve the view types
Usage
$array = EDD_Payment_History_Table::get_views();
Parameters
Returns
array $views All the views available
Source
File name: easy-digital-downloads/includes/admin/payments/class-payments-table.php
Lines:
1 to 25 of 25
public function get_views() { $current = isset( $_GET['status'] ) ? $_GET['status'] : ''; $total_count = ' <span class="count">(' . $this->total_count . ')</span>'; $complete_count = ' <span class="count">(' . $this->complete_count . ')</span>'; $pending_count = ' <span class="count">(' . $this->pending_count . ')</span>'; $processing_count = ' <span class="count">(' . $this->processing_count . ')</span>'; $refunded_count = ' <span class="count">(' . $this->refunded_count . ')</span>'; $failed_count = ' <span class="count">(' . $this->failed_count . ')</span>'; $abandoned_count = ' <span class="count">(' . $this->abandoned_count . ')</span>'; $revoked_count = ' <span class="count">(' . $this->revoked_count . ')</span>'; $views = array( 'all' => sprintf( '<a href="%s"%s>%s</a>', remove_query_arg( array( 'status', 'paged' ) ), $current === 'all' || $current == '' ? ' class="current"' : '', __('All','easy-digital-downloads' ) . $total_count ), 'publish' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'publish', 'paged' => FALSE ) ), $current === 'publish' ? ' class="current"' : '', __('Completed','easy-digital-downloads' ) . $complete_count ), 'pending' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'pending', 'paged' => FALSE ) ), $current === 'pending' ? ' class="current"' : '', __('Pending','easy-digital-downloads' ) . $pending_count ), 'processing' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'processing', 'paged' => FALSE ) ), $current === 'processing' ? ' class="current"' : '', __('Processing','easy-digital-downloads' ) . $processing_count ), 'refunded' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'refunded', 'paged' => FALSE ) ), $current === 'refunded' ? ' class="current"' : '', __('Refunded','easy-digital-downloads' ) . $refunded_count ), 'revoked' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'revoked', 'paged' => FALSE ) ), $current === 'revoked' ? ' class="current"' : '', __('Revoked','easy-digital-downloads' ) . $revoked_count ), 'failed' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'failed', 'paged' => FALSE ) ), $current === 'failed' ? ' class="current"' : '', __('Failed','easy-digital-downloads' ) . $failed_count ), 'abandoned' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( array( 'status' => 'abandoned', 'paged' => FALSE ) ), $current === 'abandoned' ? ' class="current"' : '', __('Abandoned','easy-digital-downloads' ) . $abandoned_count ), ); return apply_filters( 'edd_payments_table_views', $views ); }