Title: Hook for registrations
Last modified: November 17, 2016

---

# Hook for registrations

 *  Resolved [Safronik](https://wordpress.org/support/users/safronik/)
 * (@safronik)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hook-for-registrations/)
 * Hello,
 * I’m developer of antispam plugin and i faced an issue with your plugin.
 * One of customer asked so hard to integrate our plugin with yours. But as far 
   as i can see you don’t have any hooks for registration.
    At cursory inspection
   i noticed that you have function _ProfilePress\_Registration\_Auth::register\
   _new\_user($post,$form\_id,$files=”,$redirect=”)_ _at \ppress\classes\class-registration-
   form-auth.php:43_ which is responsible for the registrations error. (correct 
   me if i’m wrong). This function will be a perfect place for the hook (filter).
 * Thank you! Waiting for the answer!

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

 *  [Mitchell D. Miller](https://wordpress.org/support/users/brainiac/)
 * (@brainiac)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hook-for-registrations/#post-8474924)
 * 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](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hook-for-registrations/#post-8483094)
 * [@safronik](https://wordpress.org/support/users/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](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/hook-for-registrations/#post-8483098)
 * [@mitchell](https://wordpress.org/support/users/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/](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.

 * ![](https://s.w.org/plugins/geopattern-icon/ppress_905d67.svg)
 * [[Abandoned] PPress](https://wordpress.org/plugins/ppress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ppress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ppress/)
 * [Active Topics](https://wordpress.org/support/plugin/ppress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ppress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ppress/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [register](https://wordpress.org/support/topic-tag/register/)

 * 3 replies
 * 3 participants
 * Last reply from: [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/hook-for-registrations/#post-8483098)
 * Status: resolved