Automattic\WooCommerce\Blocks\Templates
AbstractTemplate{}
AbstractTemplate class.
Shared logic for templates.
No Hooks.
Usage
$AbstractTemplate = new AbstractTemplate(); // use class methods
Methods
- public get_template_description()
- public get_template_title()
- public init()
AbstractTemplate{} AbstractTemplate{} code WC 10.8.1
abstract class AbstractTemplate {
/**
* The slug of the template.
*
* @var string
*/
const SLUG = '';
/**
* Whether this is a taxonomy template.
*
* @var bool
*/
public bool $is_taxonomy_template = false;
/**
* Initialization method.
*/
abstract public function init();
/**
* Should return the title of the template.
*
* @return string
*/
abstract public function get_template_title();
/**
* Should return the description of the template.
*
* @return string
*/
abstract public function get_template_description();
}