Un motore di ricerca WordPress per sviluppatori e autori di temi



install_blog_defaults ›

Da3.0.0
DeprecatoMU
install_blog_defaults ( $blog_id, $user_id )
Parametri: (2)
  • (int) $blog_id Ignored in this function.
    Richiesto:
  • (int) $user_id
    Richiesto:
Definito a:
Codex:
ChangeLog:
  • MU

Set blog defaults.

This function creates a row in the wp_blogs table.



Sorgenti

function install_blog_defaults( $blog_id, $user_id ) {
	global $wpdb;

	_deprecated_function( __FUNCTION__, 'MU' );

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

	$suppress = $wpdb->suppress_errors();

	wp_install_defaults( $user_id );

	$wpdb->suppress_errors( $suppress );
}