WordPress action hook · part of WordPress core

register_post

A WordPress core action that 45 plugins also fire themselves, running on 417K+ sites between them.

“Fires when submitting registration form data, before the user is created.”

How to use register_post

It's an action: your callback runs at that point and receives 3 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'register_post', function( $sanitized_user_login, $user_email, $errors ) {
	// Your code runs here.
}, 10, 3 );

Argument names come from Events Manager's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

45 plugins that fire register_post

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Nextend Social Login and Register icon Nextend Social Login and Register200,000+ installs do_action( 'register_post', $userData['username'], $userData['email'], $errors ) includes/user.php:336
  2. Download Manager icon Download Manager90,000+ installs do_action( 'register_post', $user_login, $user_email, $errors ) src/User/Register.php:310
  3. Events Manager icon Events Manager60,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) em-functions.php:576
  4. User Frontend icon User Frontend20,000+ installs do_action( 'register_post', $username, $guest_email, $errors ) includes/Ajax/Frontend_Form_Ajax.php:815
  5. wpForo Forum icon wpForo Forum20,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) classes/Members.php:552
  6. FluentAuth icon FluentAuth10,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) app/Services/AuthService.php:540
  7. FluentCommunity icon FluentCommunity8,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) Modules/Auth/AuthHelper.php:56
  8. WPMobile.App icon WPMobile.App3,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) inc/functions/shortcodes.php:139
  9. Affiliates icon Affiliates2,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) lib/core/class-affiliates-registration.php:558
  10. FluentAffiliate icon FluentAffiliate2,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) app/Modules/Auth/AuthHelper.php:67
  11. Listdom: AI-powered Business Directory with Classifieds Ads Listings icon Listdom: AI-powered Business Directory with Classifieds Ads Listings1,000+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) app/includes/user.php:185
  12. Forumax icon Forumax500+ installs do_action( 'register_post', $user_login, $user_email, $wp_errors ) includes/login-form.php:365
  13. Web Directory plugin Free icon Web Directory plugin Free300+ installs do_action( 'register_post', $login, $email, $errors ) core/src/Rest/Controller.php:6244
  14. SB Login icon SB Login60+ installs do_action( 'register_post', $posted['username'], $posted['email'], $errors ) sb-login.php:308
  15. User Registration & Login icon User Registration & Login50+ installs do_action( 'register_post', $username, $email, $errors ) includes/class-sav-registration-access.php:295
  16. Atomic Addons icon Atomic Addons50+ installs do_action( 'register_post', $email, $email, $errors ) includes/admin.php:3840
  17. Orilla Cart icon Orilla Cart20+ installs do_action( 'register_post', $data['username'], $data['email'], $reg_errors ) com_shop/helpers/customer.php:268
  18. MarketEngine icon MarketEngine10+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) includes/handle-authentication/class-me-authentication.php:174
  19. WP Review Restaurant icon WP Review Restaurant10+ installs do_action( 'register_post', $username, $user_email, $reg_errors ) trunk/wp-review-restaurant-functions.php:364
  20. Apptivo eCommerce icon Apptivo eCommerce10+ installs do_action( 'register_post', $this->posted['billing_email'], $this->posted['billing_email'], $reg_errors ) classes/checkout.class.php:758
  21. MicroPayments icon MicroPayments10+ installs do_action( 'register_post', $login, $email, $errors ) inc/class-frontend-accounts.php:156
  22. MobileOnline Matrimony Pro icon MobileOnline Matrimony Pro10+ installs do_action( 'register_post', $username, $email, $errors ) includes/class-momp-auth.php:415
  23. Chameleoni Jobs icon Chameleoni Jobs10+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) job_apply.php:37
  24. CubeAccount Frontend Login icon CubeAccount Frontend Login10+ installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) cubeacct_wplogin.php:263
  25. User Registration and Login icon User Registration and Login10+ installs do_action( 'register_post', $user_login, $info['user_email'], $errors ) dew-registration-login.php:432
  26. iw profile icon iw profile10+ installs do_action( 'register_post', $posted['username'], $posted['email'], $errors ) iw-profile.php:390
  27. Ajaxed Registration Page icon Ajaxed Registration Page10+ installs do_action( 'register_post', $posted['username'], $posted['email'], $errors ) template/pana_reg_process.php:46
  28. Tsjippy Embed A Page icon Tsjippy Embed A PageFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) shared-functionality/php/user_accounts.php:268
  29. Tsjippy Default Pictures icon Tsjippy Default PicturesFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) shared-functionality/php/user_accounts.php:268
  30. Tsjippy Daily Message icon Tsjippy Daily MessageFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) shared-functionality/php/user_accounts.php:268
  31. Hatch Connect icon Hatch ConnectFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) includes/class-auth.php:285
  32. Tsjippy Comments icon Tsjippy CommentsFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) shared-functionality/php/user_accounts.php:268
  33. Sweipe Widgets for Elementor & Gutenberg icon Sweipe Widgets for Elementor & GutenbergFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) plugin/Elementor/Services/FrontAjax.php:138
  34. Tsjippy Captcha icon Tsjippy CaptchaFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) shared-functionality/php/user_accounts.php:272
  35. Zeventra icon ZeventraFewer than 10 installs do_action( 'register_post', $username, $email, $reg_errors ) includes/membership/Register.php:407
  36. ReleaseCart: Sell Digital Downloads and Software License Keys icon ReleaseCart: Sell Digital Downloads and Software License KeysFewer than 10 installs do_action( 'register_post', $login, $email, $coreErrors ) src/Frontend/RegistrationActionListener.php:218
  37. Preloader Studio icon Preloader StudioFewer than 10 installs do_action( 'register_post', $username, $email, $validation ) includes/class-preloader-studio-auth-suite.php:367
  38. Radiant Registration icon Radiant RegistrationFewer than 10 installs do_action( 'register_post', $username, $user_email, $errors ) includes/class-ajax.php:121
  39. Fine MCP icon Fine MCPFewer than 10 installs do_action( 'register_post', $username, $email, $wp_errors ) includes/widgets/theme-builder/tb-register-form.php:793
  40. DynamiApps PostFee icon DynamiApps PostFeeFewer than 10 installs do_action( 'register_post', $login, $email, $errors ) includes/class-account.php:224
  41. Aneta Prime Cargo Tracker icon Aneta Prime Cargo TrackerFewer than 10 installs do_action( 'register_post', $user_login, $email, $errors ) includes/class-login-register.php:197
  42. Semasir SMS Portal icon Semasir SMS PortalFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) includes/class-bsms-portal.php:702
  43. Polanger Dating for WordPress icon Polanger Dating for WordPressFewer than 10 installs do_action( 'register_post', $username, $email, $errors ) src/Accounts/Auth_Service.php:101
  44. Gutenberg Login Page Customizer icon Gutenberg Login Page CustomizerFewer than 10 installs do_action( 'register_post', $login, $email, $errors ) blocks/register/block.php:397
  45. Pay2Post icon Pay2PostFewer than 10 installs do_action( 'register_post', $sanitized_user_login, $user_email, $errors ) lib/framework/includes/views-login.php:546

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.