Template_Tag_Handler::remove_group( string $slug )

Removes an existing template tag group.

Description

Parameters

$slug

(string) (Required) Group slug.

Return

(bool) True on success, false on failure.

Source

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

	public function remove_group( $slug ) {
		if ( ! isset( $this->groups[ $slug ] ) ) {
			return false;
		}

		unset( $this->groups[ $slug ] );

		return true;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.