wpcf7_date_messages

The Contact Form 7 wpcf7 date messages function.

Description

wpcf7_date_messages( $messages ); 

Parameters (1)

0. $messages
The messages.

Usage

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

Defined (1)

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

/modules/date.php  
  1. function wpcf7_date_messages( $messages ) { 
  2. return array_merge( $messages, array( 
  3. 'invalid_date' => array( 
  4. 'description' => __( "Date format that the sender entered is invalid", 'contact-form-7' ),  
  5. 'default' => __( "The date format is incorrect.", 'contact-form-7' ) 
  6. ),  
  7.  
  8. 'date_too_early' => array( 
  9. 'description' => __( "Date is earlier than minimum limit", 'contact-form-7' ),  
  10. 'default' => __( "The date is before the earliest one allowed.", 'contact-form-7' ) 
  11. ),  
  12.  
  13. 'date_too_late' => array( 
  14. 'description' => __( "Date is later than maximum limit", 'contact-form-7' ),  
  15. 'default' => __( "The date is after the latest one allowed.", 'contact-form-7' ) 
  16. ) ) );