Main Menu
Sub Menu



If you want to add new lock options under Downloads --> Add New --> Package Settings --> Lock Options you can use this hook.


No arguments are passed to this hook.


Add new lock options under Package Settings --> Lock Options.
<?php add_action('wpdm_download_lock_option','my_lock_option'); ?>



function my_lock_option(){
   <h3><input type="checkbox" rel="facebooklike" class="wpdmlock" name="file[facebooklike_lock]" <?php if(get_post_meta($post->ID,'__wpdm_facebooklike_lock', true)=='1') echo "checked=checked"; ?> value="1"><?php echo __('Enable Facebook Like Lock','wpdmpro'); ?></h3>
        <div id="facebooklike" class="frm fwpdmlock" <?php if(get_post_meta($post->ID,'__wpdm_facebooklike_lock', true)!=1) echo "style='display:none;'"; ?> >
            <table  width="100%" cellpadding="0" cellspacing="0">
                <?php if(get_option('_wpdm_facebook_app_id')=='') echo "<tr><td colspan=2>You have to add a Facebook appID <a href='admin.php?page=file-manager/settings#fbappid'>here</a></td></tr>"; ?>
                    <td width="90px"><?php echo __('URL to Like:','wpdmpro'); ?></td>
                    <td><input size="10" style="width: 200px" type="text" name="file[facebook_like]" value="<?php echo get_post_meta($post->ID,'__wpdm_facebook_like', true) ?>" /></td>




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.