wp_check_mysql_version example


    function wp_install( $blog_title$user_name$user_email$is_public$deprecated = '', $user_password = '', $language = '' ) {
        if ( ! empty( $deprecated ) ) {
            _deprecated_argument( __FUNCTION__, '2.6.0' );
        }

        wp_check_mysql_version();
        wp_cache_flush();
        make_db_current_silent();
        populate_options();
        populate_roles();

        update_option( 'blogname', $blog_title );
        update_option( 'admin_email', $user_email );
        update_option( 'blog_public', $is_public );

        // Freshness of site - in the future, this could get more specific about actions taken, perhaps.         update_option( 'fresh_site', 1 );

        
Home | Imprint | This part of the site doesn't use cookies.