Gets a specific template tag.
Description
See also
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
Version | Description |
---|---|
1.0.0 | Introduced. |