Support

Home Forums Event Espresso Premium Remove "Events Profile Information" from Edit User Screen in Dashboard?

Remove "Events Profile Information" from Edit User Screen in Dashboard?

Posted: April 8, 2014 at 12:32 pm

Viewing 2 reply threads


Trevis

April 8, 2014 at 12:32 pm

Is it possible to hide/remove this bank of fields from the Edit User screen in the admin area of a site?

https://www.evernote.com/shard/s368/sh/9132f78f-56e7-40d3-8aa2-329337a1ff18/311927a9b465280d2c90fc589da8652f/deep/0/Edit-User—Assistance-League-of-Minneapolis-St.-Paul—WordPress.png


Josh

  • Support Staff

April 8, 2014 at 2:37 pm

Hi Trevis,

Yes it is. They’re added via WP action hooks and can be removed via the same means. Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin that will remove these from the edit screen and also the show user profile screen as well.

add_action ('show_user_profile', 'remove_custom_ee_show_profile_fields', 9);
function remove_custom_ee_show_profile_fields() {
	remove_action('show_user_profile', 'event_espresso_show_extra_profile_fields');
}

add_action ('edit_user_profile', 'remove_custom_ee_edit_profile_fields', 9);
function remove_custom_ee_edit_profile_fields() {
	remove_action('edit_user_profile', 'event_espresso_show_extra_profile_fields');
}


Trevis

April 8, 2014 at 4:40 pm

That did the trick—thanks so much, Josh!

Viewing 2 reply threads

The support post ‘Remove "Events Profile Information" from Edit User Screen in Dashboard?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso