LLMS_Date::last_seven_days( string $where = '' )
Query Filter for for last 7 days Appends AND statement to WP_Query WHERE clause Only retrieves posts created
Contents
Parameters Parameters
- $where
-
(string) (Optional) [WP_Query Where clause]
Default value: ''
Return Return
([string]) [modified where clause]
Source Source
File: includes/class.llms.date.php
public function last_seven_days( $where = '' ) { global $wpdb; $where .= $wpdb->prepare( ' AND post_date > %s', date( 'Y-m-d', strtotime( '-7 days' ) ) ); return $where; }
Expand full source code Collapse full source code View on GitHub