install_blog_defaults

Definition:
function install_blog_defaults($blog_id, $user_id) {}

Set blog defaults.
This function creates a row in the wp_blogs table.

Parameters

  • int $blog_id: Ignored in this function.
  • int $user_id

Source code

function install_blog_defaults($blog_id, $user_id) {

	global $wpdb;



	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );



	$wpdb->suppress_errors();



	wp_install_defaults($user_id);



	$wpdb->suppress_errors( false );

}

2025

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: