LLMS_Query_User_Postmeta::preprare_query()
Prepare the SQL for the query
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.query.user.postmeta.php
protected function preprare_query() { global $wpdb; $vars = array(); $vars[] = $this->get_skip(); $vars[] = $this->get( 'per_page' ); $sql = $wpdb->prepare( "SELECT SQL_CALC_FOUND_ROWS meta_id FROM {$wpdb->prefix}lifterlms_user_postmeta {$this->sql_where()} {$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.15.0 | Introduced. |