Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tommcfarlin/add-custom-view
A WordPress plugin that demonstrates how to add custom views to the Edit Page.
https://github.com/tommcfarlin/add-custom-view
wordpress wordpress-plugins
Last synced: 2 months ago
JSON representation
A WordPress plugin that demonstrates how to add custom views to the Edit Page.
- Host: GitHub
- URL: https://github.com/tommcfarlin/add-custom-view
- Owner: tommcfarlin
- License: gpl-3.0
- Created: 2020-11-02T19:12:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-02T19:21:06.000Z (about 4 years ago)
- Last Synced: 2024-10-09T09:13:40.759Z (3 months ago)
- Topics: wordpress, wordpress-plugins
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://tommcfarlin.com/add-a-custom-view/) 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.