Automattic\WooCommerce\Blocks\BlockTypes
CheckoutOrderSummaryBlock::inner_block_regex()
Get the regex that will return an inner block.
Method of the class: CheckoutOrderSummaryBlock{}
No Hooks.
Return
String
. Regex pattern.
Usage
// private - for code of main (parent) class only $result = $this->inner_block_regex( $block_name );
- $block_name(string) (required)
- Name of the order summary inner block.
CheckoutOrderSummaryBlock::inner_block_regex() CheckoutOrderSummaryBlock::inner block regex code WC 9.3.3
private function inner_block_regex( $block_name ) { return '/<div data-block-name="woocommerce\/checkout-order-summary-' . $block_name . '-block"(.+?)>(.*?)<\/div>/si'; }