Tribe__Repository::add_schema_entry( string $key, callable $callback )
Adds an entry to the repository filter schema.
Contents
Parameters
- $key
-
(string) (Required) The filter key, the one that will be used in
byandwherecalls. - $callback
-
(callable) (Required) The function that should be called to apply this filter.
Source
File: src/Tribe/Repository.php
public function add_schema_entry( $key, $callback ) {
$this->schema[ $key ] = $callback;
}
Changelog
| Version | Description |
|---|---|
| 4.9.5 | Introduced. |