Title: Access &amp; modify table data in json file with PHP?
Last modified: May 17, 2023

---

# Access & modify table data in json file with PHP?

 *  Resolved [wordmax](https://wordpress.org/support/users/wordmax/)
 * (@wordmax)
 * [3 years ago](https://wordpress.org/support/topic/access-or-modify-json-table-values-with-php/)
 * Is it possible to use custom PHP code or other to view or modify data from the
   json files where table(s) data is stored? We are working on a way to make data
   in the table dynamic so user can vote up/down items in table. If you have any
   ideas or documentation about such functionality please let us know. Suggestions
   for custom function we can add into a plugin like Code Snippets would be awesome.
 * Thanks!
    -  This topic was modified 3 years ago by [wordmax](https://wordpress.org/support/users/wordmax/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years ago](https://wordpress.org/support/topic/access-or-modify-json-table-values-with-php/#post-16748369)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, that would be possible by using custom PHP code. Essentially, you would 
   need to load the table, modify the data, prepare it for saving, and then save
   it again. I recommend to do it in the same way as TablePress saves the table 
   after it has been submitted, see [https://github.com/TobiasBg/TablePress/blob/master/controllers/controller-admin_ajax.php#L69](https://github.com/TobiasBg/TablePress/blob/master/controllers/controller-admin_ajax.php#L68)
 * Regards,
   Tobias

Viewing 1 replies (of 1 total)

The topic ‘Access & modify table data in json file with PHP?’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/access-or-modify-json-table-values-with-php/#post-16748369)
 * Status: resolved