Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
generate_breadcrumblist_data ( WC_Breadcrumb $breadcrumbs ) | Generates BreadcrumbList structured data. | |
generate_order_data ( WP_Order $order, boolean $sent_to_admin = false, boolean $plain_text = false ) | Generates Order structured data. | |
generate_product_data ( WC_Product $product = null ) | Generates Product structured data. | |
generate_review_data ( WP_Comment $comment ) | Generates Review structured data. | |
generate_website_data ( ) | Generates WebSite structured data. | |
get_data ( ) : array | Gets data. | |
get_structured_data ( array $types ) : array | Structures and returns data. | |
output_structured_data ( ) | Sanitizes, encodes and outputs structured data. | |
set_data ( array $data, boolean $reset = false ) : boolean | Sets data. |
Method | Description | |
---|---|---|
get_data_type_for_page ( ) : array | Get data types for pages. |
public generate_breadcrumblist_data ( WC_Breadcrumb $breadcrumbs ) | ||
$breadcrumbs | WC_Breadcrumb | Breadcrumb data. |
public generate_order_data ( WP_Order $order, boolean $sent_to_admin = false, boolean $plain_text = false ) | ||
$order | WP_Order | Order data. |
$sent_to_admin | boolean | Send to admin (default: false). |
$plain_text | boolean | Plain text email (default: false). |
public generate_product_data ( WC_Product $product = null ) | ||
$product | WC_Product | Product data (default: null). |
public generate_review_data ( WP_Comment $comment ) | ||
$comment | WP_Comment | Comment data. |
public generate_website_data ( ) |
protected get_data_type_for_page ( ) : array | ||
return | array |
public get_structured_data ( array $types ) : array | ||
$types | array | Structured data types. |
return | array |
public output_structured_data ( ) |