bbp_new_site

The WordPress Core bbp new site hook.

Description

add_action( 'bbp_new_site', (string) $bbp_create_initial_content, (int) $int ); 

Parameters (2)

0. $bbp_create_initial_content (string) => 'bbp_create_initial_content'
The bbp create initial content.
1. $int (int) => 8
The int.

Usage

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

Defined (2)

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

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