Home Forums Feature Requests Add extra fields to user_contactmethods Reply To: Add extra fields to user_contactmethods

  • Alright sure. For instance, I have this function I usually use on my sites:

    add_filter( 'user_contactmethods', function( $contactmethods ) {
    	$contactmethods['company_name'] = __( 'Company' );
    	$contactmethods['address'] = __( 'Address' );
    	$contactmethods['zip'] = __( 'Postal code' );
    	$contactmethods['city'] = __( 'City' );
    	$contactmethods['phone'] = __( 'Phone' );
    	return $contactmethods;
    }, 10, 1 );

    However, there was a website where I need a calendar for the birthday field. So I added such a field to the user edit page in the controlpanel with ACF. However, the birthday field was situated far down the page, all by itself. It would have been so much more user-friendly, if it was up the page, together with the other contact fields. Does that make sense? 🙂
    Please let me know if I should elaborate further 😉

    Regards Vayu