Filter
rpress_get_sales_by_date_args
On this page
Filters the query arguments used by the deprecated rpress_get_sales_by_date().
Applied in the deprecated rpress_get_sales_by_date() after month, day and hour constraints are added and before the WP_Query runs. The arguments also form the cache key for the rpress_stats_sales transient.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$args | array | The WP_Query arguments used to count payments in the period. |
Return value#
array. The modified arguments.
Example#
function my_sales_args( $args ) {
$args['post_status'] = array( 'publish' );
return $args;
}
add_filter( 'rpress_get_sales_by_date_args', 'my_sales_args' );
Notes#
Deprecated since 2.7. Use RPRESS_Payment_Stats()->get_sales() instead.
Source#
Applied in:
includes/deprecated-functions.php(line 442), inrpress_get_sales_by_date()
See also#
Was this page helpful?
