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.


Top ↑

Return Return

(string)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.11 Made method static.
3.16.12 Unknown.
3.14.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.