Title: remove the http:// from user_contactmethods
Last modified: August 31, 2016

---

# remove the http:// from user_contactmethods

 *  Resolved [IRPCPRO](https://wordpress.org/support/users/pcpro-1/)
 * (@pcpro-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/remove-the-http-from-user_contactmethods/)
 * hi . i add some filed to user form with this code :
 *     ```
       function modify_contact_methods($profile_fields) {
       	$profile_fields['digreepost'] = 'درجه';
       	$profile_fields['cityofuser'] = 'شهر / استان';
       	$profile_fields['idyahoomessenger'] = 'آیدی یاهو';
       	$profile_fields['expdateshowpost'] = 'تاریخ انقضا';
       	return $profile_fields;
       }
       add_filter('user_contactmethods', 'modify_contact_methods');
       ```
   
 * but this save the value with http://
    i could remove that with str_replace but
   i want use without it.

Viewing 1 replies (of 1 total)

 *  Thread Starter [IRPCPRO](https://wordpress.org/support/users/pcpro-1/)
 * (@pcpro-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/remove-the-http-from-user_contactmethods/#post-6990582)
 * i’m sorry
    The problem was solved. i using the esc_url(); instead of esc_attr();
   in echo value.

Viewing 1 replies (of 1 total)

The topic ‘remove the http:// from user_contactmethods’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [IRPCPRO](https://wordpress.org/support/users/pcpro-1/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/remove-the-http-from-user_contactmethods/#post-6990582)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
