Replaced __FILE__ in the compat declaration snippet, it can cause problems on some hostings (eg with symlinks).
parent
92a640bbc7
commit
48de685c45
|
@ -197,7 +197,7 @@ Once you examined the extension's code, you can declare whether it's compatible
|
|||
|
||||
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
|
||||
add_action('before_woocommerce_init', function() {
|
||||
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
|
||||
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', 'my-plugin-name/my-plugin-name.php', true);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ If you know your code doesn't support HPOS, you should declare incompatibility i
|
|||
|
||||
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
|
||||
add_action('before_woocommerce_init', function() {
|
||||
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, false);
|
||||
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', 'my-plugin-name/my-plugin-name.php', false);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue