Where are wpdb class public variables representing table names set?
-
Hi,
I am trying to become familiar with WordPress code, and I need help with understanding wpdb class in wp-db.php.
WordPress database tables are referenced using public variables from wpdb class. For example $wpdb->options, $wpdb->posts.
But where are they set?I understand that in wp_settings.php calling require_wp_db() and wp_set_wpdb_vars() will create wpdb object, and set ‘wp_’ prefix to each entry of $wpdb->$tables array, but where is made association between $wpdb->$tables entries and public variables for direct access to table names?
Thanks in advance.
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Where are wpdb class public variables representing table names set?’ is closed to new replies.