{"id":469,"date":"2014-04-25T06:02:09","date_gmt":"2014-04-25T06:02:09","guid":{"rendered":"http:\/\/developer.wordpress.org\/reference\/classes\/wpdb\/replace\/"},"modified":"2026-08-20T01:18:38","modified_gmt":"2026-08-20T01:18:38","slug":"wpdb-replace","status":"publish","type":"wp-parser-method","link":"https:\/\/developer.wordpress.org\/reference\/classes\/wpdb\/replace\/","title":{"rendered":"wpdb::replace()"},"excerpt":{"rendered":"<p>Replaces a row in the table or inserts it if it does not exist, based on a PRIMARY KEY or a UNIQUE index.<\/p>\n","protected":false},"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"wp-parser-source-file":[1192],"wp-parser-package":[48,3],"wp-parser-since":[26],"class_list":["post-469","wp-parser-method","type-wp-parser-method","status-publish","hentry","wp-parser-source-file-wp-includes_class-wpdb-php","wp-parser-package-database","wp-parser-package-wordpress","wp-parser-since-3-0-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-method"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":7,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/469\/revisions"}],"predecessor-version":[{"id":152964,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/469\/revisions\/152964"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=469"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=469"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}