Main Menu
Sub Menu

wpdm_update_profile_field_html

Description


If you want to add an extra user profile field in the front end, you can use this hook.

Parameters


One argument/parameter is passed to this hook.

Usage

<?php add_action('wpdm_update_profile_field_html','new_user_profile_field',10,1); ?>

Examples

<?php 
add_action('wpdm_update_profile_field_html', 'new_user_profile_field', 10, 1);
function new_user_profile_field($user)
{ ?> 
    <div class="col-md-6"> 
        <label for="fb_id">Profile Field Label: </label> 
        <input type="text" value="<?php echo get_user_meta($user->ID, 'profile_field_name', true); ?>" class="form-control" name="profile_field_name" id="profile_field_id"> 
    </div> 
<?php } 
?>

Update Profile Field Data

add_action('wpdm_update_profile','xyz_update_profile'); 
function xyz_update_profile()
{ 
  if(!is_user_logged_in()) return true;
  update_user_meta(get_curren_user_id(), "prfile_field_name", wpdm_query_var("profile_field_name"));
} 

Related


Last updated on Jan 29, 2021

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.