Reputation: 2270
We're working on a project in Wordpress and will likely need some customization. I see that I can create custom tables, and extend the Wordpress API's using PHP, but I'm wondering if it's possible for the extended API we create to connect to and manipulate the custom tables we create. And if you have any examples regarding this.
Thanks!
Upvotes: 1
Views: 1347
Reputation: 1429
Are you sure you need custom tables?
I recommend to work with Custom Post Types and meta fields with ACF, and of course, you may need custom tables but think twice before going that way.
Now you can extend the WP RESP API adding new endpoints and you can add any logic to those endpoints, query the post tables, query your custom tables, anything you want.
Upvotes: 2