wpcf7_text_messages

The Contact Form 7 wpcf7 text messages function.

Description

wpcf7_text_messages( $messages ); 

Parameters (1)

0. $messages
The messages.

Usage

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

Defined (1)

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

/modules/text.php  
  1. function wpcf7_text_messages( $messages ) { 
  2. return array_merge( $messages, array( 
  3. 'invalid_email' => array( 
  4. 'description' => __( "Email address that the sender entered is invalid", 'contact-form-7' ),  
  5. 'default' => __( "The e-mail address entered is invalid.", 'contact-form-7' ) 
  6. ),  
  7.  
  8. 'invalid_url' => array( 
  9. 'description' => __( "URL that the sender entered is invalid", 'contact-form-7' ),  
  10. 'default' => __( "The URL is invalid.", 'contact-form-7' ) 
  11. ),  
  12.  
  13. 'invalid_tel' => array( 
  14. 'description' => __( "Telephone number that the sender entered is invalid", 'contact-form-7' ),  
  15. 'default' => __( "The telephone number is invalid.", 'contact-form-7' ) 
  16. ) ) );