Skip to content
Docs
Get RestroPress

Filter

rpress_recount_store_earnings_total

Updated
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#

ParameterTypeDescription
$totalintNumber 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), in RPRESS_Tools_Recount_Store_Earnings::get_percentage_complete()

See also#

Was this page helpful?