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
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | * @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. |