• Resolved IRPCPRO

    (@pcpro-1)


    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 https://
    i could remove that with str_replace but i want use without it.

Viewing 1 replies (of 1 total)
  • Thread Starter IRPCPRO

    (@pcpro-1)

    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 https:// from user_contactmethods’ is closed to new replies.