Hi, to clarify. on next trial I managed to push a correct selection to get this form modified. Here you can see the example of my latest trial:
[contact-form-block name_label="NimI"
email_label="Maili"
phone_label="Puhelin"
message_label="Viesti"
header="true"
header_image_id="null"
header_image_size="50"
header_image_align="left"
header_title="Tuuppaa viesti"
header_text="Pukkaa viesti, niin vastaamme sinulle ensitilassa "
button_text="Matkaan"
button_color="#3d84f6"
button_text_color="white"
align="undefined"
theme="meowapps"
message_rows="5"]
add_filter( 'mcfb_email_to', function ( $to, $form ) {
$to = $form['donald.duck@ankkalinna.fi'];
return $to;
}, 10, 2 );[/contact-form-block]
In the end of this code you can see my trial to add a filter. email is not a real one, but I tried it with some real emails and message comes in all trials to my admin-email, defined in this WordPress site.
Probably I put “add_filter”-script to a wrong place? But please give an example coding, where to insert it? Or does it need some missing marks before/after it?
If i put it after or before outside [ .. ], code appears on site before/after form
If i put it upper, but inside [ .. ], code breaks form and makes layout just “default”(?) instead of selected “meowapps”, but email still doesn’t change.
So please advise some exmple, where “add_filter” has done correctly and in a correct place.