Automattic\WooCommerce\Blocks\Templates
GroupedProductAddToCartWithOptionsTemplate{}└─ AbstractTemplatePart
GroupedProductAddToCartWithOptionsTemplate class.
Хуков нет.
Использование
$GroupedProductAddToCartWithOptionsTemplate = new GroupedProductAddToCartWithOptionsTemplate(); // use class methods
Методы
- public get_template_description()
- public get_template_title()
- public init()
Код GroupedProductAddToCartWithOptionsTemplate{} GroupedProductAddToCartWithOptionsTemplate{} WC 10.0.2
class GroupedProductAddToCartWithOptionsTemplate extends AbstractTemplatePart { /** * The slug of the template. * * @var string */ const SLUG = 'grouped-product-add-to-cart-with-options'; /** * The template part area where the template part belongs. * * @var string */ public $template_area = 'add-to-cart-with-options'; /** * Initialization method. */ public function init() { } /** * Returns the title of the template. * * @return string */ public function get_template_title() { return _x( 'Grouped Product Add to Cart + Options', 'Template name', 'woocommerce' ); } /** * Returns the description of the template. * * @return string */ public function get_template_description() { return __( 'Template used to display the Add to Cart + Options form for Grouped Products.', 'woocommerce' ); } }