Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can modify template file at wp-content/plugins/events-manager/templates/forms/bookingform/booking-fields.php

    how to use templates – http://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter StormCloud

    (@daveupston)

    Sorry thats not quite what i’m after. I’m editing the layout of the Edit User page in the wp-admin.

    I have managed to hide/disable a few of the standard wordpress fields (AIM etc) but i can’t get rid of the “Phone (Events Manager)” field.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try to add these lines in your theme functions.php

    remove_action( 'show_user_profile', array('EM_User_Fields','show_profile_fields'), 1 );
    remove_action( 'edit_user_profile', array('EM_User_Fields','show_profile_fields'), 1 );
    remove_action( 'personal_options_update', array('EM_User_Fields','save_profile_fields') );
    remove_action( 'edit_user_profile_update', array('EM_User_Fields','save_profile_fields') );
    Thread Starter StormCloud

    (@daveupston)

    I have made a quick fix by commenting out the last line of classes/em-people.php

    //add_filter( 'user_contactmethods' , array('EM_People','user_contactmethods'),10,1);

    Does anyone know a way i can do this without editing the EM core files?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    try to add this in your theme functions.php instead

    remove_filter( 'user_contactmethods' , array('EM_People','user_contactmethods'),1);

    Correct code is below. Note the extra ’10’

    remove_filter( 'user_contactmethods' , array('EM_People','user_contactmethods'),10,1);

    I’ve just finished a well-overdue plugin update on a multisite and this has worked perfectly. Thanks sarumbear – you rule!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove Phone (Events Manager) field’ is closed to new replies.