Description


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

Parameters


No arguments are passed to this hook.

Usage


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

Examples


<?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>"; ?>
                <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>
                </tr>
            </table>
        </div>
<?php

}


?>

Related


Last Updated: Jun 29, 2014


Discussion

Leave a Reply