Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Remove "Events Profile Information" from Edit User Screen in Dashboard? | Event Espresso - Staging Server

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

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 - Staging Server