ClassesBigCommerceTemplatesTemplate Override

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:

ParameterTypeDescription
$post_idint

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:

ParameterTypeDescription
$templatesstring[]

set_product_archive_template_path

public set_product_archive_template_path(string[] $templates): string[]

Parameters:

ParameterTypeDescription
$templatesstring[]

set_search_template_path

public set_search_template_path(string[] $templates): string[]

Parameters:

ParameterTypeDescription
$templatesstring[]

set_taxonomy_archive_template_path

public set_taxonomy_archive_template_path(string[] $templates): string[]

Parameters:

ParameterTypeDescription
$templatesstring[]

include_product_template

public include_product_template(string|bool $template): string|bool

Parameters:

ParameterTypeDescription
$templatestring|bool


Automatically generated on 2025-01-21