How to modify user profile fields in WordPress

This hook is used to modify the fields on the user profile in wordpress. you can remove a field by using unset(), change name of field and adding new field.
                
/**
 * Add / delete new user profile fields
 *
 */

if ( ! function_exists( ‘ld_modify_contact_methods’ ) ) :

    function ld_modify_contact_methods( $contactmethods ) {
        $contactmethods[‘linkedin’] = __( ‘Linked In’ );
        $contactmethods[‘youtube’] = __( ‘YouTube’ );
        $contactmethods[‘instagram’] = __( ‘Instagram’ );
        unset($contactmethods[‘facebook’]);
        unset($contactmethods[‘twitter’]);
        unset($contactmethods[‘googleplus’]);

        return $contactmethods;
    }
    add_filter(‘user_contactmethods’,’ld_modify_contact_methods’, 10, 1);

endif;
        
If you want to use the added fields you may use the the_author_meta() function to get the data.