How to Limit Image Upload Size on Your...
Preserve MyListing website performance and disk storage by limiting image upload size...

WPCodeBox
686
After adding a product to the cart, automatically redirect customers to the checkout page in WooCommerce. This snippet is useful for stores selling a single product or streamlining the purchase process.
<?php
add_filter ('add_to_cart_redirect', function () {
global $woocommerce;
return $woocommerce->cart->get_checkout_url();
});





