Automattic\WooCommerce\Blocks\BlockTypes

Checkout::register_patterns()publicWC 1.0

Register block pattern for Empty Cart Message to make it translatable.

Method of the class: Checkout{}

No Hooks.

Return

null. Nothing (null).

Usage

$Checkout = new Checkout();
$Checkout->register_patterns();

Checkout::register_patterns() code WC 9.5.1

public function register_patterns() {
	register_block_pattern(
		'woocommerce/checkout-heading',
		array(
			'title'    => '',
			'inserter' => false,
			'content'  => '<!-- wp:heading {"align":"wide", "level":1} --><h1 class="wp-block-heading alignwide">' . esc_html__( 'Checkout', 'woocommerce' ) . '</h1><!-- /wp:heading -->',
		)
	);
}