Automattic\WooCommerce\Blocks\Templates
AbstractTemplate{}
AbstractTemplate class.
Shared logic for templates.
Хуков нет.
Использование
$AbstractTemplate = new AbstractTemplate(); // use class methods
Методы
- public get_template_description()
- public get_template_title()
- public init()
Код AbstractTemplate{} AbstractTemplate{} WC 9.9.4
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(); }