Main Menu
Sub Menu

wpdm_check_lock

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;
}
?>

Related


Last updated on Jun 29, 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.