Support » Plugin: Permalink Manager Lite » Compatibility with WooCommerce COT

  • Resolved David


    Hi Maciej,

    In the WooCommerce plugin settings, Permalink Manager is listed as incompatible with the new WooCommerce ‘High-Performance order storage (COT)’. Are there any plans to make it compatible with it?

    Thank you,

Viewing 1 replies (of 1 total)
  • Plugin Author Maciej Bis


    Hi David,

    Of course, yes 🙂 In fact, the Permalink Manager is in no way responsible for the handling of orders, either in the backend or the frontend. This is the formal error, and it is displayed because any plugin that declares support for WooCommerce but does not declare support for COT is automatically categorized as ‘uncertain’ if it supports COT.

    As of now, it is unclear how plugin developers should declare their support for COT:

    You can temporarily use the code snippet below, and I will declare support for COT as soon as there is an official way to do so 🙂

     * Permalink Manager - declare COT compatibility
    function pm_woo_cot_compatibility() {
    	if(function_exists('wc_get_container')) {
    		wc_get_container()->get( Automattic\WooCommerce\Internal\Features\FeaturesController::class )->declare_compatibility('custom_order_tables', 'permalink-manager', true);
    		wc_get_container()->get( Automattic\WooCommerce\Internal\Features\FeaturesController::class )->declare_compatibility('custom_order_tables', 'permalink-manager-pro', true);
    add_action('before_woocommerce_init', 'pm_woo_cot_compatibility');

    Best regards,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.