woo_process_directives_in_block()
Хуков нет.
Возвращает
null
. Ничего.
Использование
woo_process_directives_in_block( $block_content );
- $block_content (обязательный)
- -
Код woo_process_directives_in_block() woo process directives in block WC 7.7.2
function woo_process_directives_in_block( $block_content ) { $tag_directives = array( 'woo-context' => 'process_woo_context_tag', ); $attribute_directives = array( 'data-woo-context' => 'process_woo_context_attribute', 'data-woo-bind' => 'process_woo_bind', 'data-woo-class' => 'process_woo_class', 'data-woo-style' => 'process_woo_style', ); $tags = new WP_HTML_Tag_Processor( $block_content ); $tags = woo_process_directives( $tags, 'data-woo-', $tag_directives, $attribute_directives ); return $tags->get_updated_html(); }