Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




install_blog_defaults [ WordPress Function ]

install_blog_defaults ( $blog_id, $user_id )
Parameters:
  • (int) $blog_id Ignored in this function.
  • (int) $user_id
Uses:
Defined at:



Set blog defaults.

This function creates a row in the wp_blogs table.

Source


<?php
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_errorsfalse );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics