Tribe__Repository::add_schema_entry( string $key, callable $callback )

Adds an entry to the repository filter schema.


Parameters

$key

(string) (Required) The filter key, the one that will be used in by and where calls.

$callback

(callable) (Required) The function that should be called to apply this filter.


Top ↑

Source

File: src/Tribe/Repository.php

	public function add_schema_entry( $key, $callback ) {
		$this->schema[ $key ] = $callback;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.