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 2 replies - 1 through 2 (of 2 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,

    Thread Starter David


    Hi @mbis
    Thank you very much for the prompt and comprehensive clarification.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with WooCommerce COT’ is closed to new replies.