Viewing 3 replies - 1 through 3 (of 3 total)
  • I have a similar problem.

    I want to create a login form with just email address and password, and generate a random login.

    Plugin has do_action( 'pp_before_registration', $form_id, $user_data ).

    My login form would work without modifying plugin, if I could apply a filter to $user_data.

    Best wishes,
    Mitchell

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    @safronik you could use the “pp_registration_validation” filter

    $reg_form_errors = apply_filters( ‘pp_registration_validation’, $reg_errors, $form_id );

    Perform your spam detection and return error via

    $reg_errors->add( ‘spam_error’, __( ‘Failed spam test’ ) );

    Return “null” or true in your callback function hooked to “pp_registration_validation” if the spam test is passed.

    Cheers.

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    @mitchell

    > I want to create a login form with just email address and password,

    You can achieve that in the PRO version. see http://docs.profilepress.net/en/latest/extras/email-login/

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

The topic ‘Hook for registrations’ is closed to new replies.