LLMS_Question::get_choice( string $id )
Retrieve a choice by id
Description Description
Parameters Parameters
- $id
-
(string) (Required) Choice ID
Return Return
(obj|false)
Source Source
File: includes/models/model.llms.question.php
public function get_choice( $id ) { $choice = new LLMS_Question_Choice( $this->get( 'id' ), $id ); if ( $choice->exists() && $this->get( 'id' ) == $choice->get_question_id() ) { return $choice; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: