Template_Tag_Handler::get_tag( string $slug )

Gets a specific template tag.

Description

Parameters

$slug

(string) (Required) Template tag slug.

Return

(array|null) Template tag data, or null if not found.

Source

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

	public function get_tag( $slug ) {
		if ( ! $this->has_tag( $slug ) ) {
			return null;
		}

		return $this->tags[ $slug ];
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.