Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks like you are using "register_post" hook improperly #90

Open
sdondley opened this issue Mar 9, 2023 · 0 comments
Open

Looks like you are using "register_post" hook improperly #90

sdondley opened this issue Mar 9, 2023 · 0 comments

Comments

@sdondley
Copy link

sdondley commented Mar 9, 2023

According to https://developer.wordpress.org/reference/hooks/register_post/, register post is called before there is any validation. So you are creating users before the registration form has been validated with:

add_action( 'register_post', array( $this, 'create_new_user' ), 10, 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant