LLMS_Quiz::get_questions_count()

Get questions count.


Return Return

(int) Question Count.


Top ↑

Source Source

File: includes/models/model.llms.quiz.php

	public function get_questions_count() {

		/**
		 * Filter the count of questions in a quiz.
		 *
		 * @since 7.4.0
		 *
		 * @param int       $questions_count Number of questions in a quiz.
		 * @param LLMS_Quiz $quiz            Current quiz object.
		 */
		return apply_filters( 'llms_quiz_questions_count', count( $this->get_questions( 'ids' ) ), $this );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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