Post Metadata, Gutenberg, and SlotFills – Part 1

When I started writing this post, the idea behind it was going to be how to two things:

  1. Understand SlotFills in the context of WordPress and Gutenberg
  2. Create a SlotFill for introducing metadata

But the more I began writing, the more I recognized there’s a lot of material to cover. So in an attempt to write content that’s short, to the point, and practical (with the theory behind it coming later)

I thought I’d start with the first point and move to the next. The general idea behind what I want to do i sthis:

  • Provide a short introduction to SlotFills
  • Explain how to add your own SlotFill to WordPress
  • Save data from the user to the database (and verify it’s there)
  • Adding a column to display the post metadata in the All Articles view
  • Search the data just like you would titles and content
  • And then a short note about table prefixes

This is not a table of contents but a general guide of where I’m going with all of this. (Though feel free to bookmark this page.)

With that said, let’s started with a general introduction to SlotFills before going any further.

Continue reading “Post Metadata, Gutenberg, and SlotFills – Part 1”

Privacy is Hard: Web Browsing with 1Blocker

When it comes to privacy and web browsing, I’ve talked Firefox in a previous post. In the same post, I also stated:

I’m actually a fan of Safari for casually browsing the web. That browser coupled with 1Blocker makes it a solid alternative.

As far as Firefox is concerned, I still think it’s a fantastic browser but if you’re looking for a seamless experience between macOS and iOS 1Blocker alternative solution that I’ve been using for a few weeks.

The motivation for privacy (which I’ve previously shared) still stands but it may not be the same for you. I’m approaching it with the following attitude:

  • what I’m comfortable with using may not be the same for you (and vice versa),
  • and privacy and security are not terms that I use interchangeably.

That said, the rationale for using software like this alongside a browser that’s bundled with an operating system (remember when that was a big deal?) rather than a third-party browser is different.

Continue reading “Privacy is Hard: Web Browsing with 1Blocker”

Merry Christmas and Happy Holidays (For 2019)

Every year, I try to take the time off from Christmas to New Year’s to be with family and friends and this year is no different.

During my time off, I’ve spent a bunch of time with my family, seen Star Wars: The Rise of Skywalker (and it was great to share the experience with my kids to see the movie on the big screen!), and already spent some time with my in-laws to celebrate the holiday.

Continue reading “Merry Christmas and Happy Holidays (For 2019)”

Deactivating WordPress Plugins with SQL

If you inherit a WordPress codebase, regardless of the age of the project, there may be a lot of context that you don’t have as to why certain decisions were made or how things were implemented.

This may include the server, infrastructure used to help power the site or the app, and other contextual information about the environment in which it was running.

This type of information can be server-related information, PHP version, database type, information that’s actually stored in the database especially if you do a database import, and so on.

This image has an empty alt attribute; its file name is table-plus.png

Ideally, all of this is handed over but that’s not always the case. Anyway, say you attempt to start it up and then when you attempt to start up the application, not only does it not work but it either shows a white screen or displays a message about technical problems with your installation.

Continue reading “Deactivating WordPress Plugins with SQL”