\Barn2\WRO_Lib\WooCommerceTemplates

A WooCommerce template loader.

Summary

Methods
Properties
Constants
__construct()
get_template()
load_template()
get_template_path()
get_default_path()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
expand_template()
$template_path
$default_path
N/A

Properties

$template_path

$template_path : 

Type

$default_path

$default_path : 

Type

Methods

__construct()

__construct(  $theme_dir = '',   $default_path = '') 

Parameters

$theme_dir
$default_path

get_template()

get_template(string  $template_name, array  $args = array()) : string

Return the HTML for the specified template.

Parameters

string $template_name

The template name (e.g. 'path/to/template.php')

array $args

The template args.

Returns

string —

The template HTML.

load_template()

load_template(string  $template_name, array  $args = array()) 

Echo (output) the HTML for the specified template.

Parameters

string $template_name

The template name (e.g. 'path/to/template.php')

array $args

The template args.

get_template_path()

get_template_path() 

get_default_path()

get_default_path() 

expand_template()

expand_template(  $template_name) 

Parameters

$template_name