Automattic\WooCommerce\Blocks\Templates

AbstractTemplate{}abstractWC 1.0

AbstractTemplate class.

Shared logic for templates.

Хуков нет.

Использование

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

Методы

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

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