LLMS_Quiz::get_question_value( int $question_id )

Get the (points) value of a question.


Parameters Parameters

$question_id

(int) (Required) WP Post ID of the LLMS_Question.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/models/model.llms.quiz.php

272
273
274
275
276
277
278
279
280
281
282
        $layout = llms_get_quiz_theme_setting( 'layout' );
        if ( $layout ) {
            $arr[ $layout['id'] ] = get_post_meta( $this->get( 'id' ), $layout['id'], true );
        }
    }
 
    return $arr;
 
}
 
/**


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.2 Use strict comparison '===' in place of '=='.
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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