API / Minn\Rest / TermListArgs

TermListArgs final class

Minn\Rest\TermListArgs · public/minn/src/Minn/Rest/TermListArgs.php · 28 lines

The get_terms arguments a term list request makes, as the reference makes them before rest_{taxonomy}_query (probe rest-term-lists): the taxonomy, each declared parameter the request carries under its query name (include_slugs ordering as slug__in), the offset (the page's unless the list takes one and it is given), the parent a hierarchical list takes, and ids alone for a HEAD request.

Constants and properties

privateMAPPINGS = array ( 'exclude' => 'exclude', 'include' => 'include', 'order' => 'order', 'orderby' => 'orderby', 'post' => 'post', 'hide_empty' => 'hide_empty', 'per_page' => 'number', 'search' => 'search', 'slug' => 'slug', )

Public

staticof(WP_REST_Request $wp, array $registered, string $taxonomy, string $method): array#

The arguments before plugins see them.

$registeredarray<string, mixed>the collection, as rest_{taxonomy}_collection_params left it
@return array<string, mixed>