You appear to be a bot. Output may be restricted
Description
Filter where older than one week
Usage
$string = edd_filter_where_older_than_week( $where );
Parameters
- $where
- ( string ) optional – Where clause
Returns
string $where Modified where clause
Source
File name: easy-digital-downloads/includes/payments/functions.php
Lines:
1 to 7 of 7
function edd_filter_where_older_than_week( $where = '' ) { // Payments older than one week $start = date( 'Y-m-d', strtotime( '-7 days' ) ); $where .= " AND post_date <= '{$start}'"; return $where; }