Filter
rpress_recount_earnings_total_args
On this page
Filters the arguments used to count payments for the store earnings recalculation progress.
Runs the first time the progress percentage is computed for the Recalculate Store Earnings tool. The default is an empty array, and the result is passed to rpress_count_payments(). Keep it consistent with rpress_recount_earnings_args so the progress bar matches the processed payments.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$args | array | Arguments for rpress_count_payments. Empty by default. |
Return value#
array. The modified count arguments.
Example#
function my_recount_earnings_total_args( $args ) {
$args['start_date'] = '2024-01-01';
return $args;
}
add_filter( 'rpress_recount_earnings_total_args', 'my_recount_earnings_total_args' );
Source#
Applied in:
includes/admin/tools/class-rpress-tools-recount-store-earnings.php(line 88), inRPRESS_Tools_Recount_Store_Earnings::get_percentage_complete()
See also#
Was this page helpful?
