Checks whether a specific template tag is available.
Description
See also
Parameters
- $slug
-
(string) (Required) Template tag slug.
Return
(bool) True if template tag is available, false otherwise.
Source
File: src/components/template-tag-handler.php
public function has_tag( $slug ) { return isset( $this->tags[ $slug ] ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |