LLMS_Admin_Builder::get_existing_posts_where( string $where, WP_QUery $wp_query )
Search lessons by search term during existing lesson lookups
Parameters Parameters
- $where
-
(string) (Required) Existing sql where clause.
- $wp_query
-
(WP_QUery) (Required) Query object.
Return Return
(string)
Source Source
File: includes/admin/class.llms.admin.builder.php
287 288 289 290 291 292 293 294 295 296 | public static function get_existing_posts_where( $where , $wp_query ) { if ( self:: $search_term ) { global $wpdb ; $where .= ' AND ' . $wpdb ->posts . '.post_title LIKE "%' . esc_sql( $wpdb ->esc_like( self:: $search_term ) ) . '%"' ; } return $where ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.11 | Made method static. |
3.16.12 | Unknown. |
3.14.8 | Introduced. |