Tribe__Tickets_Plus__Commerce__WooCommerce__Main::set_compatibility_checks()
Sets the compatibility checks for WooCommerce.
Used by the WooCommerce Commerce Module to configure the compatibility with certain features of WooCommerce.
The hooks here are intentionally using anonymous methods as we do not want them to be removed.
Return
(void)
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public static function set_compatibility_checks(): void {
add_action( 'before_woocommerce_init', static function() {
if ( ! class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil', false ) ) {
return;
}
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', EVENT_TICKETS_PLUS_FILE, false );
} );
}
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |