Automattic\WooCommerce\Blocks\BlockTypes

CustomerAccount::render_labelprivateWC 1.0

Gets the label to render depending on the displayStyle.

Method of the class: CustomerAccount{}

No Hooks.

Returns

String. Label to render on the block.

Usage

// private - for code of main (parent) class only
$result = $this->render_label();

CustomerAccount::render_label() code WC 10.8.1

private function render_label() {
	return get_current_user_id()
		? __( 'My Account', 'woocommerce' )
		: __( 'Login', 'woocommerce' );
}