Home › Forums › Backend Issues (wp-admin) › Custom User Admin Page › Reply To: Custom User Admin Page
Hi Nugerama,
I’ve run into a similar situation myself a while back. The solution is more WordPress rather than ACF related. My suggestion would be to use the admin_head
action hook to add custom CSS in WP-admin and simply hide the fields you don’t want to show. Most fields still need to be loaded in to be sure that the value isn’t lost. But those fields don’t need to be visible to the user for that.
There are some fields though you can remove by simply removing them using the user_contactmethods
filter. Like for example below:
function update_contact_methods( $contactmethods ) {
unset( $contactmethods['aim'] );
unset( $contactmethods['jabber'] );
unset( $contactmethods['yim'] );
return $contactmethods;
}
add_filter( 'user_contactmethods', 'update_contact_methods' );
Let me know if this worked for you or you need any further assistance or ideas.
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.