[wp-trac] [WordPress Trac] #21949: Allow private taxonomies (public = false)
WordPress Trac
noreply at wordpress.org
Fri Oct 23 16:07:20 UTC 2015
#21949: Allow private taxonomies (public = false)
--------------------------------+---------------------------
Reporter: wpsmith | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch rest-api | Focuses:
--------------------------------+---------------------------
Comment (by Chouby):
Just a convention.
Fortunately, most themes authors display only taxonomy they know (i.e.
default taxonomies) as done by default themes.
But a few themes authors think "Oh! Plugins can add their own taxonomies,
so let's display them". {{{get_taxonomies()}}} to build the list and it's
done ;-)
Then I have users coming to the forum: "Hey I have weird "categories"
displayed aside my categories and post tags. How to remove them?" and I
use to answer: "Please ask your theme author not to display non public
taxonomy". Using {{{get_taxonomies( array( 'public" => true ) )}}} instead
of {{{get_taxonomies()}}} made the trick until now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21949#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list