bbp_new_site

The bbPress bbp new site hook.

Description

do_action( 'bbp_new_site', (unknown) $blog_id, (unknown) $user_id, (unknown) $domain, (unknown) $path, (unknown) $site_id, (unknown) $meta ); 

Parameters (6)

0. $blog_id (unknown)
The blog id.
1. $user_id (unknown)
The user id.
2. $domain (unknown)
The domain.
3. $path (unknown)
The path.
4. $site_id (unknown)
The site id.
5. $meta (unknown)
The meta.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bbp_new_site', $blog_id, $user_id, $domain, $path, $site_id, $meta ); 
The following example is for adding a hook callback.
  1. // define the bbp_new_site callback 
  2. function action_bbp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bbp_new_site', 'action_bbp_new_site', 10, 6 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bbp_new_site', 'action_bbp_new_site', 10, 6 ); 

Defined (1)

The action is defined in the following location(s).

/includes/admin/actions.php  
  1. do_action( 'bbp_new_site', $blog_id, $user_id, $domain, $path, $site_id, $meta );