anthonyclark747
Forum Replies Created
-
Hi I was using a child theme, but have since changed it back to a parent theme and tested all the options above still with no success. Thx
Thank you for trying but sorry still no good 🙁
Pasted code as is and just changed form id numbers for the one form I am testing id=1.
Any more thoughts
Hi mbrsolution
I added the following code towards the bottom of my function.php and the form is still emailing the attachments. Any thoughts (thanks in advance)
function my_action_send_attachments($send_attachments, $form_id_num) {
if ( !in_array($form_id_num, $forms) && $all_forms != true)
$all_forms = true;
return $send_attachments = false;}
Help with PHP Configuration
Tried this, but does nothing, can anybody help me with code to insert into functions.PHP please
function my_action_send_attachments($send_attachments, $form_id_num) {
if ( !in_array($form_id_num, $forms) && $all_forms != true)
$all_forms = true;
return $send_attachments = false;}
Hi Mike,
Thank you for your help, I have tried the following and it still attaches files to emails. Any ideas
function my_action_send_attachments($send_attachments, $form_id_num) {
$all_forms = true;
$send_attachments = false;
}
Hi mbrsolution
Thank you for your help, I am new to PHP, I have enabled do not delete email attachments from the server in the Advanced tab.
Could I ask for help in configuring the below PHP, so that I do not receive attachments from any forms and receive a link address instead.
function my_action_send_attachments($send_attachments, $form_id_num) {
##################################
// control which forms you want this on
$all_forms = true; // set to true for process on all forms, or false to use settings below
$forms = array(‘1′,’2’); // one or more individual forms##################################
if ( !in_array($form_id_num, $forms) && $all_forms != true)
return $send_attachments;// disables emailing the attachment
$send_attachments = false;return $send_attachments;
}
//filter hook to disable emailing the attachment
// (useful for when “Enable to not delete email attachments from the server”
// is checked and you don’t want it emailed).
add_filter(‘si_contact_send_attachments’, ‘my_action_send_attachments’, 1, 2);