Tribe__Repository::add_simple_tax_schema_entry( string $key, string|array $taxonomy, string|null $by = null )
Adds a simple taxonomy entry to the repository filter schema.
Contents
Parameters
- $key
-
(string) (Required) The filter key, the one that will be used in
byandwherecalls. - $taxonomy
-
(string|array) (Required) The taxonomy/taxonomies to use for the tax lookup.
- $by
-
(string|null) (Optional) The ->by() lookup to use (defaults to term_in).
Default value: null
Source
File: src/Tribe/Repository.php
public function add_simple_tax_schema_entry( $key, $taxonomy, $by = null ) {
$this->schema[ $key ] = array( $this, 'filter_by_simple_tax_schema' );
$this->simple_tax_schema[ $key ] = array(
'taxonomy' => $taxonomy,
'by' => $by,
);
}
Changelog
| Version | Description |
|---|---|
| 4.9.5 | Introduced. |