CRUD Queries For WordPress Custom Tables

CRUD Queries For WordPress Custom Tables

CRUD Queries For WordPress Custom TablesIn a previous tutorial we learnt about how you can create your own custom tables in WordPress, this went over the basics of how to use the dbDelta function to create tables in database. This tutorial also explained how you can use the $wpdb object to insert data and get results from your custom tables.In this tutorial we are going to be using the $wpdb object and create a base class you can use to run the CRUD queries on your database tables. CRUD is a term used to represent functions to Create, Read, Update and Delete, in this tutorial we will create methods to perform these tasks, this class will then be used as a base class your database table classes can all extend.

via CRUD Queries For WordPress Custom Tables.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s