Tutorlms_Helpers::get_percentage_required( object $attempt )

Retrieves required percentage.


Parameters Parameters

$attempt

(object) (Required) The quiz attempt object.


Top ↑

Return Return

(int)


Source Source

File: src/integrations/tutorlms/helpers/tutorlms-helpers.php

	public function get_percentage_required( $attempt ) {
		return (int) tutor_utils()->get_quiz_option( $attempt->quiz_id, 'passing_grade', 0 );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.