Description


The “wpdm_download_availability_message” filter is used to filter the download availability message of the package when you set a download availability date.

Parameters


Two arguments are passed to this filter.

Usage


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

Examples

<?php
add_filter('wpdm_download_availability_message','wpdm_change_download_availability_message',10,2);
function wpdm_change_download_availability_message($message, $package){
//your code here
// $package['publish_date'] has the date
$message = "User your custom message here... or add a count download timer here";
return $message;
}
?>

Related


Last Updated: Jun 18, 2016


Leave a Reply