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
Return Return
(boolean)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |