Main Menu
Sub Menu

wpdm_after_prepare_package_data

Description


This hook is triggered after package data is prepared. If you want to add/edit any data variable in package before use it, you can use this hook.

Parameters


One argument is passed to this hook.

Usage


To change template data.
<?php add_filter('wpdm_after_prepare_package_data','callback_function',10,1); ?>

Examples

<?php
add_filter('wpdm_after_prepare_package_data','wpdm_modify_package_data',10,1);
function wpdm_modify_package_data($vars){
//your code here
$vars['email_heading'] = "Enter email to download"; 
return $vars;
}
?>

Now you can use [tag-name] in your link or page template which will show the "tag value" at front-end.

Related


Last updated on Jun 17, 2016

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.