{"id":12407749,"date":"2020-02-06T21:23:25","date_gmt":"2020-02-06T21:23:25","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/programmatically-import-new-table\/"},"modified":"2020-02-06T21:23:25","modified_gmt":"2020-02-06T21:23:25","slug":"programmatically-import-new-table","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/programmatically-import-new-table\/","title":{"rendered":"Programmatically import new table"},"content":{"rendered":"<p>Hi Tobias!<\/p>\n<p>Thanks for your great job! <\/p>\n<p>I have on small question. Is there any way to direct import new (csv) table? <\/p>\n<p>I developed plugin where get data from other server by API and store them in CSV file. Then I would like to put it to site&#8217;s DB for future operating by TablePress (set AutoImport options, etc).<\/p>\n<p>Do I need to make 2-dimensional json data in #_posts table (make changes in #_options etc) or is there any function\/methods in TablePress controllers\/models to make this?<\/p>\n<p>I can make HTTP request like from TablePress Import tabs with posts params, but it is not right way, I think.<\/p>\n","protected":false},"template":"","class_list":["post-12407749","topic","type-topic","status-publish","hentry","topic-tag-direct-access","topic-tag-import"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12407749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12407749\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12407749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}