WordPress – Check programatically if Cart or Checkout Blocks are used in WooCommerce
How to identify in the backend if the store is using Checkout blocks [classic_checkout] or WooCommerce checkout with shortcode [woocommerce_checkout]. I'm testing a payment gateway and I use enqueue_script to add the JS to the frontend. What is the best…