#41108 closed enhancement (fixed)
Better documentation for the labels array of get_taxonomy_labels() function
Reported by: | truongwp | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Make documentation for the labels array of get_taxonomy_labels()
function better and remove @todo
tag.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Hi @truongwp, thanks for the patch. I think you're on the right track, though it's a bit misleading to document the labels as first-level properties of the
WP_Taxonomy
object, which they really aren't.So rather than document
$tax
, I think the most straightforward way to do it would be to document all of the labels in the@return
notation instead.