Class WC_Template_Loader

Template Loader

Package: WooCommerce\Classes
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_Template
Located at includes/class-wc-template-loader.php

Methods summary

public
# __construct( )

Constructor

Constructor

public string
# template_loader( mixed $template )

Load a template.

Load a template.

Handles template usage so that we can use our own templates instead of the themes.

Templates are in the 'templates' folder. woocommerce looks for theme overrides in /theme/woocommerce/ by default

For beginners, it also looks for a woocommerce.php template first. If the user adds this to the theme (containing a woocommerce() inside) this will be used for all woocommerce templates.

Parameters

$template
mixed
$template

Returns

string
public string
# comments_template_loader( mixed $template )

comments_template_loader function.

comments_template_loader function.

Parameters

$template
mixed
$template

Returns

string

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0