Article Category

Disable Load Cart from Session

As the only feature in CoCart that does not use the REST API, some developers requested that they have the option to disable it.

As the only feature in CoCart that does not use the REST API, some developers requested that they have the option to disable it.

add_filter( 'cocart_disable_load_cart', function() { return true; });

Once you have this filter set to true. “Load Cart from Session” will no longer be available.

Was this helpful to you?