[wp-trac] [WordPress Trac] #51517: Allow post statuses other the `publish` to be included in term counts.
WordPress Trac
noreply at wordpress.org
Wed Oct 14 01:12:55 UTC 2020
#51517: Allow post statuses other the `publish` to be included in term counts.
---------------------------+-----------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Currently term counts only allow for the post status `publish` to be
included. As WordPress allows for custom public post statuses, it would be
handy to be able to include them as in the count.
I can see multiple approaches:
* A filter to allow developers to modify countable statuses
* An argument when registering custom statues to indicate it's countable
* An argument when registering custom taxonomies to indicate the statuses
that are countable
* None or the above/another approach
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51517>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list