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 9.4.2
abstract class AbstractTemplate { /** * The slug of the template. * * @var string */ const SLUG = ''; /** * 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(); }