LLMS_Query_User_Postmeta::preprare_query()
Prepare the SQL for the query.
Contents
Return Return
(string)
Source Source
File: includes/class.llms.query.user.postmeta.php
* @since 6.0.0 Renamed from `preprare_query()`. * * @return string */ protected function prepare_query() { global $wpdb; $vars = array(); $vars[] = $this->get_skip(); $vars[] = $this->get( 'per_page' ); // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared $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 ); // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.15.0 | Introduced. |