Warning: This function has been deprecated. See https://lifterlms.com/docs/course-builder-custom-fields-for-developers for more information instead.
llms_get_quiz_theme_setting( string $setting = '', string $default = '' )
Get quiz settings defined by supporting themes
Parameters Parameters
- $setting
-
(string) (Optional) Name of setting, if omitted returns all settings.
Default value: ''
- $default
-
(string) (Optional) Default fallback if setting not set.
Default value: ''
Return Return
(array)
Source Source
File: includes/functions/llms.functions.quiz.php
function llms_get_quiz_theme_setting( $setting = '', $default = '' ) { /** * Deprecated. * * @since 3.17.0 * @deprecated 3.17.6 Deprecated. See https://lifterlms.com/docs/course-builder-custom-fields-for-developers for more information. * * @param array[] $settings Array of quiz theme settings. */ $settings = apply_filters_deprecated( 'llms_get_quiz_theme_settings', array( array( 'layout' => array( 'id' => '', 'name' => __( 'Layout', 'lifterlms' ), 'options' => array(), 'type' => 'select', // Either: select or image_select. ), ), ), '3.17.6' ); if ( $setting ) { return isset( $settings[ $setting ] ) ? $settings[ $setting ] : $default; } return $settings; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.3.3 | Correctly pass an array of settings as parameter for apply_filters_deprecated() . |
4.6.0 | Removed logging and use apply_filters_deprecated() in favor of apply_filters() . |
3.38.0 | See <a href="https://lifterlms.com/docs/course-builder-custom-fields-for-developers">https://lifterlms.com/docs/course-builder-custom-fields-for-developers</a> for more information. |
3.16.8 | Introduced. |