There are two possible causes I can think of:
-
The ‘
wpmu_activate_blog
‘ hook supplies 5 arguments ($blog_id, $user_id, $password, $signup->title, $meta
), but you’re only receiving 2 parameters ($blog_id, $blogmeta
) -
The ‘
wpmu_activate_blog
‘ hook is only triggered when a user creates a blog and not when the super adimin creates one.