LLMS_Quiz_Legacy::get_total_possible_points()

returns the total points possible


Description Description


Return Return

(int) [sum of all question points]


Top ↑

Source Source

File: includes/class.llms.quiz.legacy.php

	public function get_total_possible_points() {
		$questions = $this->get_questions();

		$points = 0;

		if ( ! empty( $questions ) ) {
			foreach ( $questions as $key => $value ) {
				$points += $value['points'];
			}
		}
		return ( 0 != $points ? $points : 0 );
	}


Top ↑

User Contributed Notes User Contributed Notes

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