woocommerce_blocks_has_wp_html_tag_processor()WC 1.0

Disable the Interactivity API if the required WP_HTML_Tag_Processor class doesn't exist, regardless of whether it was enabled manually.

Хуков нет.

Возвращает

true|false. True if _also_ the WP_HTML_Tag_Processor class was found.

Использование

woocommerce_blocks_has_wp_html_tag_processor( $enabled );
$enabled(true|false) (обязательный)
Current filter value.

Код woocommerce_blocks_has_wp_html_tag_processor() WC 7.7.2

function woocommerce_blocks_has_wp_html_tag_processor( $enabled ) {
	return $enabled && class_exists( 'WP_HTML_Tag_Processor' );
}