JoeHana
11/8/2013 - 2:31 AM

Customize Labels of Contact Form

Customize Labels of Contact Form

<?php

/**
 * Customize Labels of Contact Form
 */
 
add_filter('wpsight_contact_labels', 'custom_contact_labels', 100);

function custom_contact_labels($contact_labels) {
	
	$contact_labels = array(
		'name' 		  	=> __( 'Your name', 'wpsight' ),
		'name_email'  		=> __( 'Name', 'wpsight' ),
		'email' 	  	=> __( 'Your email', 'wpsight' ),
		'email_email' 	  	=> __( 'Email', 'wpsight' ),
		'phone' 	  	=> __( 'Your phone', 'wpsight' ),
		'phone_email' 		=> __( 'Phone', 'wpsight' ),
		'message' 	  	=> __( 'Your message', 'wpsight' ),
		'message_email' 	=> __( 'Message', 'wpsight' ),
		'submit' 	  	=> __( 'Submit message', 'wpsight' ),
		'copy' 		  	=> __( 'Send copy to your email', 'wpsight' ),        	
		'field_error' 		=> __( 'This field is required!', 'wpsight' ),
		'email_error' 		=> __( 'Please enter a valid email!', 'wpsight' ),
		'captcha_error' 	=> __( 'The security code entered is not correct.', 'wpsight' ),
		'argument_error' 	=> __( 'There is a problem with the captcha.', 'wpsight' ),
		'confirm' 	  	=> __( '<strong>Thanks!</strong> Your email has been sent successfully.', 'wpsight' ),
		'error' 	  	=> __( 'There was an error submitting the form!', 'wpsight' ),
		'email_subject_pre' 	=> '[' . __( 'Contact', 'wpsight' ) . '] ',
		'email_note'		=> __( 'sent you a message via the contact form.', 'wpsight' ),
		'email_name'		=> __( 'Name', 'wpsight' ),
		'email_email'		=> __( 'Email', 'wpsight' ),
		'email_phone'		=> __( 'Phone', 'wpsight' ),
		'email_message'		=> __( 'Message', 'wpsight' ),
		'email_listing'		=> __( 'Listing', 'wpsight' )
	);
				
	return $contact_labels;
	
}