Description
If you used any custom lock for your package, you can use this hook to enforce them.
Parameters
Two parameters is passed to this hook.
Usage
To apply any custom lock to packages.
<?php add_action('wpdm_check_lock','my_check_lock',10,2); ?>
Examples
<?php
add_action('wpdm_check_lock','my_check_lock',10,2);
function my_check_lock($package_id, $lock){
//check your lock here, return true for lock or return $lock
$lock = true;
return $lock;
}
?>