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
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. |