bbp_setup_new_site( $site_id )
Runs when a new site is created in a multisite network, and bbPress is active on that site (hooked to bbp_new_site
)
Description Description
Source Source
File: includes/core/update.php
function bbp_setup_new_site( $site_id = 0 ) { // Look for initial content $created = is_multisite() ? get_blog_option( $site_id, '_bbp_flag_initial_content', false ) : get_option( '_bbp_flag_initial_content', false ); // Maybe create the initial content if ( ! empty( $created ) ) { bbp_create_initial_content(); // Flag initial content as created is_multisite() ? update_blog_option( $site_id, '_bbp_flag_initial_content', true ) : update_option( '_bbp_flag_initial_content', true ); } }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |