{"id":156,"date":"2025-11-19T20:15:08","date_gmt":"2025-11-19T20:15:08","guid":{"rendered":"http:\/\/PeterSchulzNL"},"modified":"2025-11-19T20:15:08","modified_gmt":"2025-11-19T20:15:08","password":"","slug":"wp-data-access-api","status":"publish","type":"docs","link":"https:\/\/docs.legacy.wpdataaccess.com\/docs\/wp-data-access-api\/","title":{"rendered":"WP Data Access API"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;0px|0px|0px|0px|false|false&#8221; custom_padding=&#8221;0px|0px|0px|0px|false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_margin=&#8221;0px|0px|0px|0px|false|false&#8221; custom_padding=&#8221;0px|0px|0px|0px|false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||0px|||&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>PHP programmers can use the WP Data Access API to create CRUD pages in minutes or access remote databases from their WordPress pages (or a combination of them &#x1f609;). There is no online API documentation, but it is very easy to generate your own copy.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Generate API documentation<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>We recommend to store a local copy of the plugin in a separate folder to generate the API documentation and install <a href=\"https:\/\/graphviz.org\/download\/\" target=\"_blank\" rel=\"noopener\" title=\"Download and install GraphViz\">GraphViz<\/a> which is required to perform the documentation generation process.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<\/p>\n<ul>\n<li>Start the command line interface<\/li>\n<li>Navigate to root folder containing the local copy of the plugin<\/li>\n<li>Enter the following commands:\n<ul>\n<li>composer require phpdocumentor\/phpdocumentor<\/li>\n<li>php vendor\/phpdocumentor\/phpdocumentor\/bin\/phpdoc.php<\/li>\n<\/ul>\n<\/li>\n<li>Navigate to subfolder docs<\/li>\n<li>Open file index.html in your favourite browser<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<\/p>\n<h2>Delete API documentation<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<\/p>\n<ul>\n<li>Start the command line interface<\/li>\n<li>Navigate to root folder containing the local copy of the plugin<\/li>\n<li>Enter the following command:\n<ul>\n<li>composer remove phpdocumentor\/phpdocumentor<\/li>\n<\/ul>\n<\/li>\n<li>Delete subfolder docs<\/li>\n<\/ul>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP programmers can use the WP Data Access API to create CRUD pages in minutes or access remote databases from their WordPress pages (or a combination of them &#x1f609;). There is no online API documentation, but it is very easy to generate your own copy.Generate API documentationWe recommend to store a local copy of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"doc_category":[34],"doc_tag":[],"knowledge_base":[],"class_list":["post-156","docs","type-docs","status-publish","hentry","doc_category-api"],"year_month":"2026-06","word_count":322,"total_views":"118","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"peterschulz.nl@gmail.com","author_nicename":"peterschulz-nlgmail-com","author_url":"https:\/\/wpdataaccess.com\/author\/wpdataaccess_admin\/"},"doc_category_info":[{"term_name":"API","term_url":"https:\/\/docs.legacy.wpdataaccess.com\/docs\/non-knowledgebase\/api\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":0,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/doc_category?post=156"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/doc_tag?post=156"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/knowledge_base?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}