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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.