WooCommerce Code Reference

ProductTemplate
in package

Removed product editor product template value object.

Tags
deprecated
10.9.0

Product editor extension APIs were deprecated. The product block editor was removed in 11.0.0 with no replacement.

Table of Contents

$removal_warning_logged  : bool
Whether the removal warning has already been logged for the current request.
__construct()  : mixed
Constructor.
get_description()  : string|null
Get the template description.
get_icon()  : string|null
Get the template icon.
get_id()  : string
Get the template ID.
get_is_selectable_by_user()  : bool
Get the selectable attribute.
get_layout_template_id()  : string|null
Get the layout template ID.
get_order()  : int
Get the template order.
get_product_data()  : array<string|int, mixed>
Get the product data.
get_title()  : string
Get the template title.
set_description()  : void
Set the template description.
set_icon()  : void
Set the template icon.
set_layout_template_id()  : void
Set the layout template ID.
set_order()  : void
Set the template order.
to_json()  : array<string|int, mixed>
Get the product template as JSON-like data.
maybe_log_removal_warning()  : void
Log a warning about the removed compatibility class.

Properties

Methods