Marketing NSW

Forum Replies Created

Viewing 25 posts - 51 through 75 (of 86 total)
Oct 25, 2023 at 9:47 am
#190873
Participant
Marketing NSW
OP

add_action("wpdm_before_email_download_link", "your_function", 10, 2);
function your_function($post, $package){
    $package_data = get_post( $package['ID'] );
    $headers = 'From: Site Name <noreply@sitename.com>' . "\r\n";
    $headers .= 'Content-type: text/html' . "\r\n";

    // Set the time zone to Asia/Singapore
    date_default_timezone_set('Asia/Singapore');
    $current_date_time = date('Y-m-d h:i:s A');

    $message = '<html><body>';
    $message .= '<table style="border: 1px solid #ccc; background-color: #f5f5f5; border-collapse: collapse;">';
    $message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloader Name:</td><td style="border: 1px solid #ccc;">' . $post['name'] . '</td></tr>';
    $message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloader Email:</td><td style="border: 1px solid #ccc;">' . $post['email'] . '</td></tr>';
    $message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Package Title:</td><td style="border: 1px solid #ccc;">' . $package_data->post_title . '</td></tr>';
    $message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloader\'s IP:</td><td style="border: 1px solid #ccc;">' . $_SERVER['REMOTE_ADDR'] . '</td></tr>';
    $message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloaded Time:</td><td style="border: 1px solid #ccc;">' . $current_date_time . '</td></tr>';
    $message .= '</table>';
    $message .= '</body></html>';

    wp_mail(get_option("admin_email"), "Potential Leads - Visitor downloaded a file from the NSW website.", $message, $headers); 
}

View post on imgur.com

Hi thanks for your guidance im able to use your code to modify it helps alot.
This code above already works flawlessly, i have change to wpdm_before_email_download_link but i wanted to add “company” using advanced customfield. it didnt work, i wanted to add extra 1 info to the email notification.

however i use the following code to add “company” it seems doesnt work:

$company = wpdm_acf([acf_EmailLock_Company], 'EmailLock/Company');
    $message .= "Company: " . $custom_data . "<br>";

not sure how to add that in.. could you guide me?

Oct 25, 2023 at 8:13 am
#190867
Participant
Marketing NSW
OP

Hi, im trying to add custom field “company” into the email notification

View post on imgur.com

it doenst work. the code i copy to put on my $message is wpdm_acf([ID],’EmailLock/Company’
can you guide me?

Oct 25, 2023 at 7:36 am
#190865
Participant
Marketing NSW
OP

what if i wanted to add “Name” and “company” (made with custom_form_fields)” as following the email notification came empty

    $message .= "Name: " . $post['name'] . "<br>";
    $message .= "Company: " . $custom_data . "<br>";

these 2 fields info doenst send to my email.
is my code wrong?

Oct 24, 2023 at 6:35 pm
#190855
Participant
Marketing NSW
OP

R u able to provide me guidance to do this?

Oct 5, 2023 at 7:11 am
#190454
Participant
Marketing NSW
OP

Thank man.. didnt know it was that simple.

Oct 5, 2023 at 6:51 am
#190450
Participant
Marketing NSW
OP
This reply has been marked as private.
Oct 5, 2023 at 2:33 am
#190444
Participant
Marketing NSW
OP
This reply has been marked as private.
Oct 3, 2023 at 4:27 pm
#190397
Participant
Marketing NSW
OP
This reply has been marked as private.
Oct 3, 2023 at 1:25 pm
#190383
Participant
Marketing NSW
OP

View post on imgur.com

hi it doesnt work

Oct 3, 2023 at 1:21 pm
#190382
Participant
Marketing NSW
OP

can u give an example of it?

Oct 3, 2023 at 1:18 pm
#190381
Participant
Marketing NSW
OP

does this protect from hotlinks?

Feb 9, 2023 at 8:50 am
#183549
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 9, 2023 at 8:44 am
#183548
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 9, 2023 at 6:59 am
#183543
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 9, 2023 at 6:01 am
#183539
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 8, 2023 at 7:34 am
#183210
Participant
Marketing NSW
OP

Hi is the WordPress Download Manager Special Pack included this WPDM webhook? i have to buy that separated?

Feb 1, 2023 at 10:07 am
#182941
Participant
Marketing NSW
OP

one of our client still reported going into spam folder.
i suspect is the SPF record problems.

how to I make it pass?

Feb 1, 2023 at 9:35 am
#182934
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 1, 2023 at 9:15 am
#182930
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 1, 2023 at 9:02 am
#182928
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 1, 2023 at 8:56 am
#182925
Participant
Marketing NSW
OP

what should i do? how to adjust?

Feb 1, 2023 at 7:21 am
#182921
Participant
Marketing NSW
OP
This reply has been marked as private.
Aug 26, 2021 at 10:38 am
#160529
Participant
Marketing NSW
OP
This reply has been marked as private.
Jul 19, 2021 at 9:27 am
#157848
Participant
Marketing NSW
OP
This reply has been marked as private.
Jul 19, 2021 at 9:24 am
#157847
Participant
Marketing NSW
OP

no i wanted to hide it from the public not specific user only..am I able to do it?

Viewing 25 posts - 51 through 75 (of 86 total)