Template_Tag_Handler::add_group( string $slug, string $label )

Adds a new template tag group.

Description

Parameters

$slug

(string) (Required) Group slug.

$label

(string) (Required) Group label.

Return

(bool) True on success, false on failure.

Source

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

	public function add_group( $slug, $label ) {
		if ( isset( $this->groups[ $slug ] ) ) {
			return false;
		}

		$this->groups[ $slug ] = $label;

		return true;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.