Skip to content
Docs
Get RestroPress

Filter

rpress_export_earnings_completed_statuses

Updated
On this page

Filters the statuses counted as completed when the earnings report computes net totals.

Runs for each row of the earnings report export when the net count and net amount are calculated. The default is publish and revoked. Each status is read from the row's per-status data, so a status added here should also be one the report collects.

Parameters#

ParameterTypeDescription
$completed_statusesarrayList of payment status keys. Default publish and revoked.

Return value#

array. List of payment status keys.

Example#

function my_completed_statuses( $completed_statuses ) {
	return array( 'publish' );
}
add_filter( 'rpress_export_earnings_completed_statuses', 'my_completed_statuses', 10, 1 );

Source#

Applied in:

  • includes/admin/reporting/export/class-batch-export-earnings-report.php (line 179), in RPRESS_Batch_Earnings_Report_Export::print_csv_rows()

See also#

Was this page helpful?