LLMS_Student_Query::preprare_query()
Prepare the SQL for the query
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.student.query.php
protected function preprare_query() { global $wpdb; $vars = array(); if ( $this->get( 'search' ) ) { $search = '%' . $wpdb->esc_like( $this->get( 'search' ) ) . '%'; $vars[] = $search; $vars[] = $search; $vars[] = $search; } $vars[] = $this->get_skip(); $vars[] = $this->get( 'per_page' ); $sql = $wpdb->prepare( "SELECT SQL_CALC_FOUND_ROWS {$this->sql_select()} FROM {$wpdb->users} AS u {$this->sql_joins()} {$this->sql_search()} {$this->sql_having()} {$this->sql_orderby()} LIMIT %d, %d;", $vars ); return $sql; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: