Description


If you want to add new settings under Downloads –> Add New –> Lock Options –> Enable Email Lock , you can use this hook.

Parameters


One parameter is passed to this hook.

Usage


To add new settings under Email Lock section in Add New/Edit Package page.
<?php add_action('wpdm_custom_form_field','wpdm_ask_for_custom_data',10,1); ?>

Examples


<?php
add_action('wpdm_custom_form_field','wpdm_ask_for_custom_data',10,1);

function wpdm_ask_for_custom_data($pid)
{
    $cff = get_post_meta($pid, '__wpdm_custom_form_field', true);
    $idl = get_post_meta($pid, '__wpdm_email_lock_idl', true);
    if (!$cff) $cff = array();
?>

<table>
<tbody>
<tr>
<td><label><input checked="checked" name="" type="checkbox" value="1" /> <?php _e("Ask for Visitor's Name","wpdmpro");?></label>

<hr noshade="noshade" size="1" />

After submit form: <label><input id="idl" checked="checked" name="file[email_lock_idl]" type="radio" value="0" /> Mail Download Link</label> 
<label><input id="idl" checked="checked" name="file[email_lock_idl]" type="radio" value="1" /> Downlaod Instantly</label>
</td>
</tr>
</tbody>
</table>
?>

<?php 
}
?>

Related


Last Updated: Jul 16, 2016


Leave a Reply