Automattic\WooCommerce\Blocks\Templates

AbstractTemplate{}WC 1.0

AbstractTemplate class.

Shared logic for templates.

No Hooks.

Usage

$AbstractTemplate = new AbstractTemplate();
// use class methods

Methods

  1. public get_template_description()
  2. public get_template_title()
  3. public init()

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();
}