Support

Account

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.