We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c9d69c commit 2d83a1bCopy full SHA for 2d83a1b
includes/woocommerce.php
@@ -340,13 +340,6 @@ function empty_cart_message() {
340
*/
341
function disable_cart() {
342
343
- // Skip for API requests.
344
- if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
345
-
346
- return;
347
348
- }
349
350
/**
351
* Filter whether to always show the cart icon.
352
* Default: `false`
0 commit comments