Skip to content
Docs
Get RestroPress

Filter

rpress_order_alerts_escalation_query_args

Updated
On this page

Filters the WP_Query arguments used to find orders to escalate.

Runs in RPRESS_Order_Alerts::run_escalation_check() after the default arguments (post type rpress_payment, alertable payment statuses, a post_date range and a meta query for orders not yet escalated) are built. Changing them changes which orders are considered; each candidate is still checked for being alertable and past the escalation window. Any post__not_in you set is respected while paging.

Available since RestroPress 3.5.

Parameters#

ParameterTypeDescription
$argsarrayWP_Query arguments.
$nowintUnix time of the check.

Return value#

array. WP_Query arguments.

Example#

function my_escalation_query_args( $args, $now ) {
	$args['posts_per_page'] = 20;
	return $args;
}
add_filter( 'rpress_order_alerts_escalation_query_args', 'my_escalation_query_args', 10, 2 );

Source#

Applied in:

  • includes/features/order-alerts/loader.php (line 554), in RPRESS_Order_Alerts::run_escalation_check()

See also#

Was this page helpful?