I described my Comment Redirector WordPress Plugin last time and why I created it. Now for a quick structure and layout overview before getting into any technical particulars.
Comment Redirector File Structure
Starting at the top, assets are used on the Plugin Listing on WordPress.org. Css contain the stylesheets for both the Comment Redirector admin contents and the Comment Redirection message on the blog post. Images, self explanatory. Include contains support functions to populate the Post Quick Edit form (which requires client-side data retrieval, typically using ajax.) Views contains the admin form for customizing the Comment Redirection message template. The main Comment_Redirector Class is located in the root comment-redirector.php.
Actions and Filters
Here’s a quick summary of the plugin’s actions and filters.
Perhaps the most interesting aspect of the plugin from a developer’s perspective was adding a field to the Post List Quick Edit Form and what that entailed. I’ll post on that next.