Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Student_Query::requires_field( string $field )

Determines if a field should be selected/joined based on searching and sorting arguments


Parameters Parameters

$field

(string) (Required) Field name/key.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class.llms.student.query.php

		$sql_query = "{$base_query}
			{$this->sql_orderby()}
			LIMIT %d, %d;";

		// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
		// phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber -- $vars is an array with the correct number of items.
		$sql = $wpdb->prepare(
			$sql_query,
			$vars
		);
		// phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared

		return $sql;
	}

	/**
	 * Determines if a field should be selected/joined based on searching and sorting arguments
	 *

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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