• Hello, good afternoon. First, congratulations for the plugin. I use it on all websites. I am using the code in functions.php of my theme.

    add_filter( 'wpcf7_posted_data', 'your_wpcf7_posted_data' );
    
    function your_wpcf7_posted_data( $posted_data ) {
    	$name_fields = array( 'first-name' );
    
    	foreach ( $name_fields as $field )
    		$posted_data[$field] = ucwords( $posted_data[$field] );
    
    	return $posted_data;
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    As often as it works and sometimes not. There any way to ensure the operation?

    https://www.ads-software.com/plugins/contact-form-7/

  • The topic ‘First letter always cap’ is closed to new replies.