wp-includes/load.php: wp_set_wpdb_vars() Set the database table prefix and the format specifiers for database table columns. Its primary purpose is to provide an interface with the WordPress database, but can be used to communicate with any other appropriate database. The scope argument can take one of the following: ‘all’ – returns ‘all’ and ‘global’ tables. Talking to the Database: The wpdb Class.
The first block of code is the original of what I was sent which im assured works and the second is how I've tried to convert for multisite use. The following placeholders can be used in the query string: %d … Also allows for the CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE to override the WordPress users and usermeta tables that would otherwise be determined by the prefix. Description # Description. WordPress defines a class called wpdb, which contains a set of functions used to interact with a database. I've been given the code below by the Relevanssi support guys but I need to adjust this for a multisite setup.