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_Bulk_Enroll::_bottom_else_top( string $param, mixed $validation = FILTER_DEFAULT )

Retrieves submitted inputs


Parameters Parameters

$param

(string) (Required) The input key

$validation

(mixed) (Optional) Validation filter constant

Default value: FILTER_DEFAULT


Top ↑

Return Return

(mixed) The submitted input value


Top ↑

Source Source

File: includes/admin/class.llms.student.bulk.enroll.php

	private function _bottom_else_top( $param, $validation = FILTER_DEFAULT ) {

		$return_val = false;

		// Get the value of the input displayed at the bottom of users table.
		$bottom_value = filter_input( INPUT_GET, $param . '2', $validation );

		// Get the value of input displayed at the top of users table.
		$top_value = filter_input( INPUT_GET, $param, $validation );

		// Prefer top over bottom, just like WordPress does.
		if ( ! empty( $bottom_value ) ) {
			$return_val = $bottom_value;
		}
		if ( ! empty( $top_value ) ) {
			$return_val = $top_value;
		}

		return $return_val;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.20.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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