{"id":5401,"date":"2026-05-07T11:47:17","date_gmt":"2026-05-07T10:47:17","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=5401"},"modified":"2026-05-07T11:53:27","modified_gmt":"2026-05-07T10:53:27","slug":"database-for-multisite","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/multisite\/database-for-multisite","title":{"rendered":"Database for multisite"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Making a plugin or theme work on multisite with shared global database tables<\/h4>\n\n\n\n<p>Use $wpdb->base_prefix everywhere instead of $wpdb->prefix<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">$wpdb-&gt;prefix and $wpdb-&gt;base_prefix<br>Shared database tables or individual tables per individual sub-site<\/h4>\n\n\n<p>Single Site<\/p>\n<p style=\"padding-left: 40px;\">$wpdb-&gt;prefix and $wpdb-&gt;base_prefix are identical on a standard WordPress install<\/p>\n<p>Multisite Subsite:<\/p>\n<p style=\"padding-left: 40px;\">$wpdb-&gt;prefix &#8211; if you want seperate tables that belong to individual sub sites.<br \/>$wpdb-&gt;base_prefix &#8211; if you want table shared by all the sub sites (site 1, site 2, etc) (Multisite global).<\/p>","protected":false},"excerpt":{"rendered":"<p>Making a plugin or theme work on multisite with shared global database tables Use $wpdb->base_prefix everywhere instead of $wpdb->prefix $wpdb-&gt;prefix and $wpdb-&gt;base_prefixShared database tables or individual tables per individual sub-site Single Site $wpdb-&gt;prefix and $wpdb-&gt;base_prefix are identical on a standard WordPress install Multisite Subsite: $wpdb-&gt;prefix &#8211; if you want seperate tables that belong to individual [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[394],"tags":[],"class_list":["post-5401","post","type-post","status-publish","format-standard","hentry","category-multisite"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=5401"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5401\/revisions"}],"predecessor-version":[{"id":5415,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5401\/revisions\/5415"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=5401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=5401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=5401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}