You can set the caption to the title using the following.
add_filter('attachment_fields_to_edit', 'image_caption_to_title', 11, 2 );
function image_caption_to_title( $form_fields, $post ) {
if ( substr( $post->post_mime_type, 0, 5 ) == 'image' ) {
$form_fields['post_excerpt']['value'] = $post->post_title;
//$form_fields['post_excerpt']['input'] = 'hidden';
}
return $form_fields;
}
You can also hide the caption field by changing //$form_fields['post_excerpt']['input'] = 'hidden';
for $form_fields['post_excerpt']['input'] = 'hidden';
.
All it will do is set the default value of the caption to that of the title(it doesn’t stop a user changing it, but you can hide the field to prevent it as i mentioned above).
Hope that helps..