wpcf7_quiz_messages

The Contact Form 7 wpcf7 quiz messages function.

Description

wpcf7_quiz_messages( $messages ); 

Parameters (1)

0. $messages
The messages.

Usage

  1. if ( !function_exists( 'wpcf7_quiz_messages' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/modules/quiz.php'; 
  3.  
  4. // The messages. 
  5. $messages = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_quiz_messages($messages); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/quiz.php  
  1. function wpcf7_quiz_messages( $messages ) { 
  2. return array_merge( $messages, array( 'quiz_answer_not_correct' => array( 
  3. 'description' => __( "Sender doesn't enter the correct answer to the quiz", 'contact-form-7' ),  
  4. 'default' => __( "The answer to the quiz is incorrect.", 'contact-form-7' ) 
  5. ) ) );