woocommerce_shipping_zone_loaded

woocommerce_shipping_zone_loaded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_shipping_zone_loaded') is found 2 times:

  • /includes/data-stores/class-wc-shipping-zone-data-store.php line 89
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
         * Indicate that the WooCommerce shipping zone has been loaded.
         *
         * @param WC_Shipping_Zone $zone The shipping zone that has been loaded.
         */
        do_action( 'woocommerce_shipping_zone_loaded', $zone );
        return;
    }
     
    $zone_data = $wpdb->get_row(
        $wpdb->prepare(
            "SELECT zone_name, zone_order FROM {$wpdb->prefix}woocommerce_shipping_zones WHERE zone_id = %d LIMIT 1",
  • /includes/data-stores/class-wc-shipping-zone-data-store.php line 111
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
        $zone->read_meta_data();
        $zone->set_object_read( true );
     
        /** This action is documented in includes/datastores/class-wc-shipping-zone-data-store.php. */
        do_action( 'woocommerce_shipping_zone_loaded', $zone );
    }
     
    /**
     * Deletes a shipping zone from the database.
     *
     * @since  3.0.0