Main Menu
Sub Menu

after_add_package

after_add_package” is an action triggered whenever a package is created. This can be used to do some extra functions immediately after creating a package from front-end or back-end. For example you may want to send email notification after a package is created.

Example:

<?php

function wpdm_new_download_notification($package){

// package is an array with all package data, try
// print_r($package);
//to do: write your notification code here

}

add_action("after_add_package", "wpdm_new_download_notification");

?>
Last updated on Jan 20, 2014

Need More Clarification?

For any technical issue, if you are already using pro version please post in pro forum and free version users please post in free forum. Otherwise, if you have any pre-sale or order related query please contact live chat support team. For technical support.

Need Customization?

If you need additional customization on WordPress Download Manager or any type of custom support on WordPress you may contact our customization service.