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:
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.
-
Nextend Social Login and Register200,000+ installs
do_action( 'register_post', $userData['username'], $userData['email'], $errors )includes/user.php:336 -
Download Manager90,000+ installs
do_action( 'register_post', $user_login, $user_email, $errors )src/User/Register.php:310 -
Events Manager60,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )em-functions.php:576 -
User Frontend20,000+ installs
do_action( 'register_post', $username, $guest_email, $errors )includes/Ajax/Frontend_Form_Ajax.php:815 -
wpForo Forum20,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )classes/Members.php:552 -
FluentAuth10,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )app/Services/AuthService.php:540 -
FluentCommunity8,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )Modules/Auth/AuthHelper.php:56 -
WPMobile.App3,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )inc/functions/shortcodes.php:139 -
Affiliates2,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )lib/core/class-affiliates-registration.php:558 -
FluentAffiliate2,000+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )app/Modules/Auth/AuthHelper.php:67 -
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 -
Forumax500+ installs
do_action( 'register_post', $user_login, $user_email, $wp_errors )includes/login-form.php:365 -
Web Directory plugin Free300+ installs
do_action( 'register_post', $login, $email, $errors )core/src/Rest/Controller.php:6244 -
SB Login60+ installs
do_action( 'register_post', $posted['username'], $posted['email'], $errors )sb-login.php:308 -
User Registration & Login50+ installs
do_action( 'register_post', $username, $email, $errors )includes/class-sav-registration-access.php:295 -
Atomic Addons50+ installs
do_action( 'register_post', $email, $email, $errors )includes/admin.php:3840 -
Orilla Cart20+ installs
do_action( 'register_post', $data['username'], $data['email'], $reg_errors )com_shop/helpers/customer.php:268 -
MarketEngine10+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )includes/handle-authentication/class-me-authentication.php:174 -
WP Review Restaurant10+ installs
do_action( 'register_post', $username, $user_email, $reg_errors )trunk/wp-review-restaurant-functions.php:364 -
Apptivo eCommerce10+ installs
do_action( 'register_post', $this->posted['billing_email'], $this->posted['billing_email'], $reg_errors )classes/checkout.class.php:758 -
MicroPayments10+ installs
do_action( 'register_post', $login, $email, $errors )inc/class-frontend-accounts.php:156 -
MobileOnline Matrimony Pro10+ installs
do_action( 'register_post', $username, $email, $errors )includes/class-momp-auth.php:415 -
Chameleoni Jobs10+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )job_apply.php:37 -
CubeAccount Frontend Login10+ installs
do_action( 'register_post', $sanitized_user_login, $user_email, $errors )cubeacct_wplogin.php:263 -
User Registration and Login10+ installs
do_action( 'register_post', $user_login, $info['user_email'], $errors )dew-registration-login.php:432 -
iw profile10+ installs
do_action( 'register_post', $posted['username'], $posted['email'], $errors )iw-profile.php:390 -
Ajaxed Registration Page10+ installs
do_action( 'register_post', $posted['username'], $posted['email'], $errors )template/pana_reg_process.php:46 -
Tsjippy Embed A PageFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )shared-functionality/php/user_accounts.php:268 -
Tsjippy Default PicturesFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )shared-functionality/php/user_accounts.php:268 -
Tsjippy Daily MessageFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )shared-functionality/php/user_accounts.php:268 -
Hatch ConnectFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )includes/class-auth.php:285 -
Tsjippy CommentsFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )shared-functionality/php/user_accounts.php:268 -
Sweipe Widgets for Elementor & GutenbergFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )plugin/Elementor/Services/FrontAjax.php:138 -
Tsjippy CaptchaFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )shared-functionality/php/user_accounts.php:272 -
ZeventraFewer than 10 installs
do_action( 'register_post', $username, $email, $reg_errors )includes/membership/Register.php:407 -
ReleaseCart: Sell Digital Downloads and Software License KeysFewer than 10 installs
do_action( 'register_post', $login, $email, $coreErrors )src/Frontend/RegistrationActionListener.php:218 -
Preloader StudioFewer than 10 installs
do_action( 'register_post', $username, $email, $validation )includes/class-preloader-studio-auth-suite.php:367 -
Radiant RegistrationFewer than 10 installs
do_action( 'register_post', $username, $user_email, $errors )includes/class-ajax.php:121 -
Fine MCPFewer than 10 installs
do_action( 'register_post', $username, $email, $wp_errors )includes/widgets/theme-builder/tb-register-form.php:793 -
DynamiApps PostFeeFewer than 10 installs
do_action( 'register_post', $login, $email, $errors )includes/class-account.php:224 -
Aneta Prime Cargo TrackerFewer than 10 installs
do_action( 'register_post', $user_login, $email, $errors )includes/class-login-register.php:197 -
Semasir SMS PortalFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )includes/class-bsms-portal.php:702 -
Polanger Dating for WordPressFewer than 10 installs
do_action( 'register_post', $username, $email, $errors )src/Accounts/Auth_Service.php:101 -
Gutenberg Login Page CustomizerFewer than 10 installs
do_action( 'register_post', $login, $email, $errors )blocks/register/block.php:397 -
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.