LLMS_Notifications_Query::preprare_query()

Prepare the SQL for the query


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/notifications/class.llms.notifications.query.php

	protected function preprare_query() {

		global $wpdb;

		$vars = array(
			$this->get_skip(),
			$this->get( 'per_page' ),
		);

		$sql = $wpdb->prepare(
			"SELECT SQL_CALC_FOUND_ROWS *

			FROM {$wpdb->prefix}lifterlms_notifications AS n

			LEFT JOIN {$wpdb->posts} AS p on p.ID = n.post_id

			{$this->sql_where()}

			{$this->sql_orderby()}

			LIMIT %d, %d
			;",
			$vars
		);

		return $sql;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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