API / Minn\Rest / TermFilters

TermFilters final class

Minn\Rest\TermFilters · public/minn/src/Minn/Rest/TermFilters.php · 25 lines

A term a REST read answers with, as plugin code filters it on the reference (probe rest-term-filters): through get_term and get_{taxonomy}. What a filter changes (a count, a name) is what the answer shows. Without the runtime, or with nothing hooked, the engine's own row stands. (Lists run get_terms itself.)

Public

staticone(Minn\Content\TermRecord $term, string $taxonomy): Minn\Content\TermRecord#

A term as get_term hands it back.

Internals 1

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privaterecord(WP_Term $object, Minn\Content\TermRecord $term): Minn\Content\TermRecord#

The record with the fields a filter may have changed.