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.
Used by 1
Constants and properties
| private | MAPPINGS = array ( 'exclude' => 'exclude', 'include' => 'include', 'order' => 'order', 'orderby' => 'orderby', 'post' => 'post', 'hide_empty' => 'hide_empty', 'per_page' => 'number', 'search' => 'search', 'slug' => 'slug', ) |
Public
| static | of(WP_REST_Request $wp, array $registered, string $taxonomy, string $method): array# | The arguments before plugins see them.
@return array<string, mixed> |
Nothing matches.