Removes an existing template tag.
Description
See also
Parameters
- $slug
-
(string) (Required) Template tag slug.
Return
(bool) True on success, false on failure.
Source
File: src/components/template-tag-handler.php
public function remove_tag( $slug ) { if ( ! $this->has_tag( $slug ) ) { return false; } unset( $this->tags[ $slug ] ); return true; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |