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"));
}