/add-custom-view

A WordPress plugin that demonstrates how to add custom views to the Edit Page.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Add Custom View

A WordPress plugin that demonstrates how to add custom views to the All Posts page using existing filters, hooks, functions, and techniques.

This is repository is part of this post which outlines how it works, why it works the way it does, and other considerations to keep in mind.

How It Works

  1. This is an mu-plugin so it belongs in the mu-plugins directory,
  2. When you navigate to the All Posts screen, a new link will appear next to Published, et. al.
  3. If there are posts that are marked as Uncategorized, they will be accessible via this link; otherwise, the link is visible but as a count of 0 beside it.

Installation

  1. Download the main PHP file in this repository,
  2. Drop it into your mu-plugins directory,
  3. Begin using it.