wp_set_wpdb_vars example

/** * @global wpdb $wpdb WordPress database abstraction object. * @since 0.71 */
global $wpdb;
// Include the wpdb class and, if present, a db.php database drop-in. require_wp_db();

// Set the database table prefix and the format specifiers for database table columns. $GLOBALS['table_prefix'] = $table_prefix;
wp_set_wpdb_vars();

// Start the WordPress object cache, or an external object cache if the drop-in is present. wp_start_object_cache();

// Attach the default filters. require ABSPATH . WPINC . '/default-filters.php';

// Initialize multisite if enabled. if ( is_multisite() ) {
    require ABSPATH . WPINC . '/class-wp-site-query.php';
    require ABSPATH . WPINC . '/class-wp-network-query.php';
    
Home | Imprint | This part of the site doesn't use cookies.