woocommerce_blocks_has_wp_html_tag_processor()
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() 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' ); }