Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created January 16, 2017 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/f88109c99130f441438e759ae2c68074 to your computer and use it in GitHub Desktop.
Save joshfeck/f88109c99130f441438e759ae2c68074 to your computer and use it in GitHub Desktop.
Disable auto populating of registration form fields while using the WP user integration add-on for Event Espresso 4.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action( 'AHEE__Single_Page_Checkout___initialize_reg_step__attendee_information', 'plugin_ee_wpuser_for_attendee_no_autofill', 10 );
function plugin_ee_wpuser_for_attendee_no_autofill(){
if ( EE_FRONT_AJAX ) {
remove_filter( 'FHEE__EEM_Answer__get_attendee_question_answer_value__answer_value', array( 'EED_WP_Users_SPCO', 'filter_answer_for_wpuser' ), 10, 4 );
}
remove_filter( 'FHEE__EEM_Answer__get_attendee_question_answer_value__answer_value', array( 'EED_WP_Users_SPCO', 'filter_answer_for_wpuser' ), 10, 4 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment