Overview | Getting Started | CQFS shortcode | Action Hooks | Filter Hooks | Live Demos
Filter names and context
Filter Name | Context | Used in |
---|---|---|
"cqfs_pass_msg" | default pass message | template-results.php |
"cqfs_fail_msg" | default fail message | template-results.php |
"cqfs_result_you_answered" | label text for quiz answer | template-results.php |
"cqfs_result_ans_status" | label text for quiz status | template-results.php |
"cqfs_result_ans_note" | label text for answer note | template-results.php |
"cqfs_thankyou_msg_feedback" | default text for feedback thanks | template-results.php |
"cqfs_thankyou_msg_survey" | default text for survey thanks | template-results.php |
"cqfs_failure_msg" | default failure message | shortcode.php |
"cqfs_next_text" | next button text, cqfs form | shortcode.php |
"cqfs_prev_text" | previous button text, cqfs form | shortcode.php |
"cqfs_submit_text" | submit button text, cqfs form | shortcode.php |
"cqfs_guest_user_form_msg" | text message on guest form | utilities.php |
"cqfs_error_uname_msg" | user name error message | utilities.php |
"cqfs_error_email_msg" | user email error message | utilities.php |
"cqfs_user_form_consent" | guest form consent message, allowed html “p”, “a”, “div” | utilities.php |
"cqfs_email_site_name" | site name in email | utilities.php |
"cqfs_email_default_subject" | default subject in email | utilities.php |
"cqfs_email_quiz_pass_msg" | default quiz pass message in email | utilities.php |
"cqfs_email_quiz_fail_msg" | default quiz fail message in email | utilities.php |
"cqfs_email_quiz_thank_msg" | default thank you message in email | utilities.php |
"cqfs_email_feedback_msg" | default feedback message in email | utilities.php |
"cqfs_email_survey_msg" | default survey message in email | utilities.php |
"cqfs_email_admin_msg" | default message for admin email | utilities.php |
Example use
// change the default pass message
add_filter('cqfs_pass_msg', 'my_callback_function');
function my_callback_function(){
// your code goes here
return esc_html__('Congrats! you have successfully passed the quiz.', 'text-domain');
}
Resources
Getting Started
Find all about getting started with CQFS plugin.
CQFS shortcode
Discover CQFS shortcode use and attributes.
Action Hooks
Developers can use the available action hooks for their custom contents.
Filter Hooks
Find all available filter hooks that you can use to modify default values.
Live Demos
Discover all demos that you can easily create and use in your site.