O'Reilly logo

WordPress Plugin Development Cookbook by Yannick Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inserting and updating records in custom tables

Now that we have a basic infrastructure in place to display existing bugs, the next logical step is to create a form that will be used to insert and update records in a custom table.

This recipe shows how to add a form to manage bugs when users select an entry in the bug tracking list or indicate that they want to create a new entry by using the appropriate link.

Getting ready

You should have already followed the Displaying custom table data in an admin page recipe to have an existing framework in place. Alternatively, you can get the resulting code (ch7-bug-tracker\ch7-bug-tracker-v3.php) from the code bundle and rename the file to ch7-bug-tracker.php.

How to do it...

  1. Navigate to the WordPress plugin ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required