Want to get minimum order amount for free shipping in WooCommerce? This value is stored in an option under the key woocommerce_free_shipping_settings. It is an array that is loaded by the WC_Settings_API->init_settings().
If you want to get access to it directly you can use get_option():
1 2 | $free_shipping_settings = get_option( 'woocommerce_free_shipping_settings' ); $min_amount = $free_shipping_settings['min_amount']; |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.