I had one of my clients come to me with a fun challenge. They wanted to be able to “flag” a post, and have that flag automatically disappear on the site after a certain period of time. This post explores how I solved that problem for them.
This guide covers how to create, and use a custom database table using BerlinDB.
To bridge the gap in BerlinDB’s documentation, I’ve crafted a basic WordPress plugin loaded with inline comments to help people see how to use it.
I discovered a mixup on the documentation for date query in BerlinDB, and reported it.
I added a suggested improvement to BerlinDB, asking for a hook to allow for better visibility when a database table fails to be created.
I observed a bug in BerlinDB related to the upgrader, and reported it.
I submitted a pull request that fixes a bug in BerlinDB where metadata associated with a table was not getting deleted properly.
While doing some tests, I noticed that the metadata associated with a table was not getting deleted. It appears to be related to how delete_metadata_by_mid converts table names, and how we’re passing that table name in.