Automattic\WooCommerce\Blocks\Templates

AbstractPageTemplate::page_template_title()publicWC 1.0

Filter the page title when the template is active.

Method of the class: AbstractPageTemplate{}

No Hooks.

Return

String.

Usage

$AbstractPageTemplate = new AbstractPageTemplate();
$AbstractPageTemplate->page_template_title( $title );
$title(string) (required)
Page title.

AbstractPageTemplate::page_template_title() code WC 8.9.0

public function page_template_title( $title ) {
	if ( $this->is_active_template() && $this->get_template_title() ) {
		return $this->get_template_title();
	}
	return $title;
}