Support

Home Forums WP User Integration Unhook the "All your registrations" table in the WP user profile

Unhook the "All your registrations" table in the WP user profile

Posted: November 22, 2017 at 7:49 pm

Viewing 3 reply threads


kdaily

November 22, 2017 at 7:49 pm

Is it possible to unhook or remove the “All your registrations” table on the user’s profile? I moved a copy of it to the user dashboard, and don’t now need it in the profile.


Josh

  • Support Staff

November 22, 2017 at 8:09 pm

Hi there,

Yes it is possible. You can add the following to your custom functions plugin to remove the “All your registrations” table:

add_action('admin_head', 'my_remove_user_profile_items');
function my_remove_user_profile_items(){
  remove_action(
    'edit_user_profile', 
    array('EED_WP_Users_Admin', 'view_registrations_for_contact')
  );
  remove_action(
    'show_user_profile', 
    array('EED_WP_Users_Admin', 'view_registrations_for_contact')
  );
};


kdaily

November 24, 2017 at 9:43 am

Thanks!


Josh

  • Support Staff

November 24, 2017 at 12:16 pm

You’re welcome.

Viewing 3 reply threads

The support post ‘Unhook the "All your registrations" table in the WP user profile’ 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