manifest / performance / internal-flags
Internal Flags
Use a hidden taxonomy to improve expensive queries.
by Alley Interactive · github.com/alleyinteractive/internal-flags · website
★ 5stars
401kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/alleyinteractive/internal-flags/archive/refs/heads/develop.zipAlso on Packagist as alleyinteractive/internal-flags:
composer require alleyinteractive/internal-flagsFrom the readme
Internal Flags
Creates a hidden taxonomy to improve expensive query performance by not relying on
meta queries. Allows for 'flags' to be set/unset on posts easily and entirely hidden
from the end-user.
Instructions
By default, the internal taxonomy will be added to all registered post types.
Common Use Cases
- Hiding from archives/searches
- Posts by an author (where author is stored as a meta normally)
- Showing/hiding sponsored posts
Usage
Setting a flag on a post
Removing a flag on a post
Checking if a flag is on a post
Searching for posts with a flag
Searching for posts without a flag
Inverse of the above
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.2.0 | Jul 27, 2022 | — | — |