WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a function that automatically creates a new post for people when they register. It works great on a standard site but in multisite it stops working. I've spent hours trying to debug it. Is there a better hook to use than user_register in multisite?

share|improve this question
up vote 2 down vote accepted

There is the action hook wpmu_new_user.

 * Create a user.
 * This function runs when a user self-registers as well as when
 * a Super Admin creates a new user. Hook to 'wpmu_new_user' for events
 * that should affect all new users, but only on Multisite (otherwise
 * use 'user_register').
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.