WordPress at Your Fingertips
function is not described

wc_get_template_html() WC 2.5.0

Like wc_get_template, but returns the HTML instead of outputting.

No Hooks.

Return

String.

Usage

wc_get_template_html( $template_name, $args, $template_path, $default_path );
$template_name(string) (required)
Template name.
$args(array)
Arguments. (default: array).
Default: array()
$template_path(string)
Template path. (default: '').
Default: ''
$default_path(string)
Default path. (default: '').
Default: ''

Notes

Changelog

Since 2.5.0 Introduced.

Code of wc_get_template_html() WC 5.8.0

function wc_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
	ob_start();
	wc_get_template( $template_name, $args, $template_path, $default_path );
	return ob_get_clean();
}