Filter
rpress_recount_store_earnings_total
On this page
Filters the total number of payments used for store earnings recount progress.
Runs after the total is computed as the count of published plus revoked payments. The value is stored and used as the denominator of the progress percentage. Change it only to match a customised payment query.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$total | int | Number of payments the recount is expected to process. |
Return value#
int. The total used for progress calculation.
Example#
function my_recount_store_earnings_total( $total ) {
return (int) $total;
}
add_filter( 'rpress_recount_store_earnings_total', 'my_recount_store_earnings_total' );
Source#
Applied in:
includes/admin/tools/class-rpress-tools-recount-store-earnings.php(line 91), inRPRESS_Tools_Recount_Store_Earnings::get_percentage_complete()
See also#
Was this page helpful?
