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: Jun 17, 2016


Leave a Reply