TaxonomyTag

Class. It implements CacheTag.

use Saij\WpAppFramework\Cache\Tag\TaxonomyTag;

Invalidated when a term of the taxonomy is created, changed or deleted, changes its term meta, or is assigned to or removed from an object. The taxonomy is its name or a taxonomy class of the theme or plugin (new TaxonomyTag(Genre::class)).

Constructor

new TaxonomyTag(string $taxonomy)
ParameterTypeDefaultDescription
taxonomystringrequiredThe name of the taxonomy (1 to 32 characters) or a taxonomy class: #[Taxonomy] of this theme or plugin, Category or Tag.

Methods

getTaxonomy()

getTaxonomy(): string

The taxonomy as given to the constructor: a name or a taxonomy class.

Returns string