This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// updated per harisrozak: | |
add_filter('woocommerce_checkout_update_order_review', 'clear_wc_shipping_rates_cache'); | |
function clear_wc_shipping_rates_cache(){ | |
$packages = WC()->cart->get_shipping_packages(); | |
foreach ($packages as $key => $value) { | |
$shipping_session = "shipping_for_package_$key"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function self_get_page_sections($path = ''){ | |
// check if the flexible content field has rows of data | |
if( have_rows('content_blocks') ): | |
// loop through the rows of data | |
while ( have_rows('content_blocks') ) : the_row(); |