Hi Tynermeister,
We are sorry for delay with the answer.
We strongly recommend do not change plugin code directly in the plugin folder, because you can loose your changes after the plugin update to a new version.
Regarding to your question about the placeholders, currently plugin functionality do not allow to add placeholders to form fields. We will add this functionality for future updates.
But, we have added possibility to add placeholders via specific filter directly in function.php in your theme.
To use this filter you will need:
1) Update plugin to the latest version (v2.1.1)
2) Add to function.php in your theme following code:
add_filter( 'wcp_contact_form_get_fields_settings', 'tm6830_my_placeholders' );
function tm6830_my_placeholders ($data) {
foreach ($data as &$item) {
switch ($item['name']) {
case 'My Field':
$item['atts']['placeholder'] = 'My Placeholder';
break;
case 'My Field 2':
$item['atts']['placeholder'] = 'My Placeholder 2';
break;
//...
default:
break;
}
}
return $data;
}
Where,
‘My Field’, ‘My Field 2’,… – values of the “Name” field from the settings table for which we want to add placeholders;
‘My Placeholder’, ‘My Placeholder 2’, … – corresponding placeholders values.
Please let us know, if this information help you.