Automattic\WooCommerce\Blocks\BlockTypes
CustomerAccount::render_label
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() CustomerAccount::render label code WC 10.8.1
private function render_label() {
return get_current_user_id()
? __( 'My Account', 'woocommerce' )
: __( 'Login', 'woocommerce' );
}