WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Is there a new site hook? (2 posts)

  1. JohnnyN05
    Member
    Posted 3 years ago #

    Hello,

    I was wondering if anyone can either point me to the right direction or answer my question. I wrote a plugin and need to run a function to check a few things before a new site is created. I tried 'wpmu_new_blog', 'activate_blog', and 'wpmu_activate_blog'. None seem to work.

    Is there a hook for whenever the superadmin create's a new site?

    Thanks!

  2. JohnnyN05
    Member
    Posted 3 years ago #

    I figured it out.

    I used 'wpmu_new_blog' and I also used a lower priority than 10. That seems to work.

    The problem seemed to be in my PHP code.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic