#41108 closed enhancement (fixed)
Better documentation for the labels array of get_taxonomy_labels() function
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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_Taxonomyobject, 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@returnnotation instead.