wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



install_blog_defaults › WordPress Function

Od
Przestarzały
install_blog_defaults ( $blog_id, $user_id )
Parametry: (2)
  • (int) $blog_id Ignored in this function.
    Wymagane: Tak
  • (int) $user_id
    Wymagane: Tak
Zdefiniowane na:
Codex:
Dziennik zmian:
  • MU

Set blog defaults.

This function creates a row in the wp_blogs table.


Źródło

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