wpcf7_file_messages
The Contact Form 7 wpcf7 file messages function.
Description
wpcf7_file_messages( $messages );
Parameters (1)
- 0. $messages
- The messages.
Usage
if ( !function_exists( 'wpcf7_file_messages' ) ) { require_once ABSPATH . PLUGINDIR . 'contact-form-7/modules/file.php'; } // The messages. $messages = null; // NOTICE! Understand what this does before running. $result = wpcf7_file_messages($messages);
Defined (1)
The function is defined in the following location(s).
- /modules/file.php
- function wpcf7_file_messages( $messages ) {
- return array_merge( $messages, array(
- 'upload_failed' => array(
- 'description' => __( "Uploading a file fails for any reason", 'contact-form-7' ),
- 'default' => __( "There was an unknownerroruploading the file.", 'contact-form-7' )
- ),
- 'upload_file_type_invalid' => array(
- 'description' => __( "Uploaded file is not allowed for file type", 'contact-form-7' ),
- 'default' => __( "You are not allowed to upload files of this type.", 'contact-form-7' )
- ),
- 'upload_file_too_large' => array(
- 'description' => __( "Uploaded file is too large", 'contact-form-7' ),
- 'default' => __( "The file is too big.", 'contact-form-7' )
- ),
- 'upload_failed_php_error' => array(
- 'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ),
- 'default' => __( "There was anerroruploading the file.", 'contact-form-7' )
- )
- ) );
- }