Developing a post attachments plugin

In the two preceding sections, we discussed the steps for building a basic plugin and the life cycle events. In this section, we will be developing a plugin, while covering the implementation of life cycle events and critical features in plugin development. Let's summarize the requirement of the plugin.

The use of blog posts and displaying dynamic content after the post is common in most WordPress sites. We already looked at the process of adding content after the post, in the first plugin we developed. Now, we are going to extend the feature to allow attachment downloads after the post. In some sites, it's essential to allow users to download files related to the post. This plugin will allow the administrator ...

Get WordPress Development Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.