Adds a new template tag group.
Description
See also
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
Version | Description |
---|---|
1.0.0 | Introduced. |