version >=10.0 • Default prefix: “wp_” • 12 tables • Table “wp_links” no longer used in core • Hybrid entity/object-oriented and key-value store • Unique IDs (primary key: bigint[20] unsigned) for each entity within a table (Post/User/Comment/Term ID)
are modelled after the object they are storing: ▪ wp_posts ▪ wp_comments ▪ wp_users ▪ wp_terms • wp_{object}meta tables ◦ Each object type has a key-value meta store: ▪ wp_postmeta ▪ wp_usermeta ▪ wp_commentmeta ▪ wp_termmeta
A bit like a dynamic dictionary, in table form • Values relating to objects are identified by a key • key can be any valid varchar(255); value can be any primitive or serializable object (PHP serialize function). • WP_OPTIONS ◦ option_id bigint(20) ◦ option_name varchar(64) <= key ◦ option_value longtext <= value ◦ autoload varchar(20)