llms_get_question_type( string $type )
Retrieve data for a single question type.
Parameters Parameters
- $type
-
(string) (Required) Id of the question type.
Return Return
(array|false)
Source Source
File: includes/functions/llms.functions.quiz.php
function llms_get_question_type( $type ) { $types = llms_get_question_types(); $ret = isset( $types[ $type ] ) ? $types[ $type ] : false; /** * Filters the data for a single question type. * * @since 3.16.0 * * @param array|false $data Data for a single question type. False it there's no data for a given quesiton type. * @param string $type Id of the question type. */ return apply_filters( 'llms_get_question_type', $ret, $type ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |