Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcode support for quiz question description #362

Open
raazgemstone opened this issue Mar 7, 2023 · 0 comments
Open

Shortcode support for quiz question description #362

raazgemstone opened this issue Mar 7, 2023 · 0 comments

Comments

@raazgemstone
Copy link

raazgemstone commented Mar 7, 2023

tutor/templates/single/quiz/parts/question.php

Line number 124 :

$question_description = wp_kses_post( stripslashes( $question->question_description ) ) ;

proposed change

$question_description = do_shortcode( wp_kses_post( stripslashes( $question->question_description ) ) );

The updated code enables the execution of shortcodes within the quiz question description, thereby providing users with additional functionality, such as the ability to embed video or audio content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant