Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 856 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 856 Bytes

Underpin BerlinDB Example

This is an example plugin that shows you how to create a Books table in MySQL using BerlinDB and Underpin. It is based on the WordPress Example repostiory.

This plugin is intended for you to clone, hack, and learn how BerlinDB works with Underpin.

Important - You should only run this repository on a non-production environment!

To Use:

  1. Clone this repository in your WordPress install's plugins directory
  2. Run composer install
  3. Activate this plugin
  4. Visit a single post

You will see that the post content is replaced with a list of Harry Potter books, in order of publish.

From here, you can tinker with the query, the files that get saved, and everything else inside of the bootstrap.php file. There are many comments in this file, and should help