update_site_meta example

wp_check_mysql_version();
        wp_cache_flush();
        pre_schema_upgrade();
        make_db_current_silent();
        upgrade_all();
        if ( is_multisite() && is_main_site() ) {
            upgrade_network();
        }
        wp_cache_flush();

        if ( is_multisite() ) {
            update_site_meta( get_current_blog_id(), 'db_version', $wp_db_version );
            update_site_meta( get_current_blog_id(), 'db_last_updated', microtime() );
        }

        delete_transient( 'wp_core_block_css_files' );

        /** * Fires after a site is fully upgraded. * * @since 3.9.0 * * @param int $wp_db_version The new $wp_db_version. * @param int $wp_current_db_version The old (current) $wp_db_version. */
Home | Imprint | This part of the site doesn't use cookies.