llms_get_question_type( string $type )

Retrieve data for a single question type.


Parameters Parameters

$type

(string) (Required) Id of the question type.


Top ↑

Return Return

(array|false)


Top ↑

Source Source

File: includes/functions/llms.functions.quiz.php

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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 );
 
}


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.