Registers a template tag handler.
Description
See also
Parameters
- $template_tag_handler
-
(awsmug\Torro_Forms\Components\Template_Tag_Handler) (Required) Template tag handler to register.
Return
(bool) True on success, false on failure.
Source
File: src/components/template-tag-handler-manager.php
public function register( $template_tag_handler ) { $slug = $template_tag_handler->get_slug(); if ( $this->exists( $slug ) ) { return false; } $this->handlers[ $slug ] = $template_tag_handler; return true; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |