Template_Tag_Handler::has_tag( string $slug )

Checks whether a specific template tag is available.

Description

Parameters

$slug

(string) (Required) Template tag slug.

Return

(bool) True if template tag is available, false otherwise.

Source

File: src/components/template-tag-handler.php

	public function has_tag( $slug ) {
		return isset( $this->tags[ $slug ] );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.