Why can’t we pull the name and email from the form that is submitted?
I know how to set the notification email.
I found the issue in the functions.php file that you had modified. I inserted the email we needed.
function download_notification($package){
$package_data = get_post($package['ID']);
$headers = 'From: Site Name ' . "\r\n";
$headers .= 'Content-type: text/html' . "\r\n";
$message = "Downloader's IP: ". $_SERVER['REMOTE_ADDR']. "<br/>Sender's Name: ". "custom_form_field['name']";
wp_mail("info@optimatumgroup.com", "Download Notification: ".$package_data->post_title, $message, $headers);
}
add_action("before_download", "download_notification");
How can I get this to send the name and email? The IP address is of no use to the client?
Thanks for the reply, but I do not know how to add the name and email that is in the form.
So how can we prevent this from being a problem in the future when the plug in is updated? Is an update going to undo what was just fixed?
Looks like you had to create an additional php doc to do this?
[SOLVED] Done, thank you.
Shaon, my client is really pressing me. Can you help?
I am still not seeing the buttons
I ended up using CSS to hide those elements. I thought there would be a much easier way though.
/* remove page title, author, etc. on download pages */
body.single-wpdmpro header.jumbotron.subhead, body.single-wpdmpro header.article-header{display: none!important;}
Thisis the url without those elements in there now: http://optimatumgroup.com/package/holding-health-care-costs-in-check/
Can you please help with my other post about the missing download button images? Client is really upset now.
Can you please reply to this? I have posted twice about this and I really need to find a solution.
I tried to download the plug in from the home page link and I think I messed up because it was the older free version. I then downloaded the Pro version from my Downloads and then installed that.
But the reinstall of the older version seemed to lose all my packages. Funny thing is, the items are still in the data base in the _ahm_files table. Can you help me to get them back in the package manager and back on the web site?
oops, please disregard las post. It works great! ๐
Then what is the category short code for? Is it for use on pages or posts, and not within widgets?
But there is no page called WPDMpro – the url they are using is http://optimatumgroup.com/wpdmpro/. it seems to be a blog category. Yet the category does not exist. Nor do the posts listed on that page. Cn you help?
I just hid the display in CSS.