Woocommerce disable checkout on specific day

A better approach in my opinion would be to redirect the cart and checkout pages to a static page with user friendly message.

This shows how to get Various WooCommerce Page URLs, you can hook a function to init, that function will:

  • See if the current URL matches the URL of the checkout or cart pages
  • If so, it will wp_redirect to your static page.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)