A WordPress-centric search engine for devs and theme authors

wpmu_new_blog ›

SinceMU (3.0.0)
do_action( 'wpmu_new_blog', $blog_id, $user_id, $site->domain, $site->path, $site->network_id, $meta )
Parameters: (6)
  • (int) $blog_id Site ID.
    Required: Yes
  • (int) $user_id User ID.
    Required: Yes
  • (string) $domain Site domain.
    Required: Yes
  • (string) $path Site path.
    Required: Yes
  • (int) $network_id Network ID. Only relevant on multi-network installations.
    Required: Yes
  • (array) $meta Meta data. Used to set initial site options.
    Required: Yes
Defined at:

Fires immediately after a new site is created.


do_action( 'wpmu_new_blog', $blog_id, $user_id, $site->domain, $site->path, $site->network_id, $meta );