Automattic\WooCommerce\Blocks\BlockTypes
CheckoutOrderSummaryBlock::get_inner_block_content()
Get the contents of the given inner block.
Метод класса: CheckoutOrderSummaryBlock{}
Хуков нет.
Возвращает
Массив|true|false
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_inner_block_content( $block_name, $content );
- $block_name(строка) (обязательный)
- Name of the order summary inner block.
- $content(строка) (обязательный)
- The content to search.
Код CheckoutOrderSummaryBlock::get_inner_block_content() CheckoutOrderSummaryBlock::get inner block content WC 9.8.5
private function get_inner_block_content( $block_name, $content ) { if ( preg_match( $this->inner_block_regex( $block_name ), $content, $matches ) ) { return $matches[0]; } return false; }