Template_Override
Class Template_Override
Tell WordPress about the path to the templates
- Full name:
\BigCommerce\Templates\Template_Override
Methods
render_product_single
Render the contents of the product single template
public render_product_single(int $post_id): string
Parameters:
Parameter | Type | Description |
---|---|---|
$post_id | int |
render_product_archive
Render the contents of the product archive template
public render_product_archive(): string
set_product_single_template_path
public set_product_single_template_path(string[] $templates): string[]
Parameters:
Parameter | Type | Description |
---|---|---|
$templates | string[] |
set_product_archive_template_path
public set_product_archive_template_path(string[] $templates): string[]
Parameters:
Parameter | Type | Description |
---|---|---|
$templates | string[] |
set_search_template_path
public set_search_template_path(string[] $templates): string[]
Parameters:
Parameter | Type | Description |
---|---|---|
$templates | string[] |
set_taxonomy_archive_template_path
public set_taxonomy_archive_template_path(string[] $templates): string[]
Parameters:
Parameter | Type | Description |
---|---|---|
$templates | string[] |
include_product_template
public include_product_template(string|bool $template): string|bool
Parameters:
Parameter | Type | Description |
---|---|---|
$template | string|bool |
Automatically generated on 2025-01-21