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


Parameters Parameters

$where

(string) (Optional) [WP_Query Where clause]

Default value: ''


Top ↑

Return Return

([string]) [modified where clause]


Top ↑

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;
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.