LLMS_Question_Choice::set_question( int $id )

Sets question-related data from constructor


Parameters Parameters

$id

(int) (Required) WP Post ID of the question's parent question


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/models/model.llms.question.choice.php

	 * @since    3.16.0
	 * @version  3.16.0
	 */
	public function set_question( $id ) {
		$question = llms_get_post( $id );
		if ( $question && is_a( $question, 'LLMS_Question' ) ) {
			$this->question    = $question;
			$this->question_id = $id;
			return true;
		}



Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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