I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?

Check wp-config.php. It’s possible to define these values there, in which case they won’t be available as settings, which means they won’t be saved in the database. It is possible to set the site URL manually in the wp-config.php file. Add these two lines to your wp-config.php, where “example.com” is the correct location of your … Read more

Multisite setup creating custom table

It’s up to you. Normally when you create and query a table you use the $wpdb->prefix property as part of the table name. In a multisite install this prefix includes the current site ID. So if you use dbDelta() to create a table with the name $wpdb->prefix . ‘tablename’, then — assuming the default prefix … Read more

How much of my site can I recover from public_html?

All site content for your WordPress site is stored in the database. The files that query and display the data, store settings, etc, are in the theme and plugin folders. There is the wp-config.php file that stores access credentials for your database. And media files are stored in the wp-content folder, but media files locations … Read more

Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb

You’ll want to include the wp-load.php, not the wp-config.php. Depending on how you’re doing it, you may also have to set $_SERVER variables if they aren’t already set to prevent WordPress from trying to redirect you. For example: $_SERVER = array( “HTTP_HOST” => “http://example.com”, “SERVER_NAME” => “http://example.com”, “REQUEST_URI” => “https://wordpress.stackexchange.com/”, “REQUEST_METHOD” => “GET” );

Separate table or usermeta

The obvious advantage of user meta is that you can use the WordPress API to record and retrieve these extra columns, without writing extra PHP classes or SQL queries. The wp_usermeta table is pretty well indexed, in fact, it uses one row per field (rather than one column if you use a custom table), and … Read more