Uma área de pesquisa sobre o WordPress para devs e autores do tema



install_blog_defaults ›

Desde3.0.0
ObsoletoMU
install_blog_defaults ( $blog_id, $user_id )
Parâmetros: (2)
  • (int) $blog_id Ignored in this function.
    Required: Yes
  • (int) $user_id
    Required: Yes
Definido em:
Codex:
Log de mudanças:
  • MU

Set blog defaults.

This function creates a row in the wp_blogs table.



Fonte

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 );
}