woocommerce_shipping_zone_loaded

woocommerce_shipping_zone_loaded

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_shipping_zone_loaded') is found 2 times:

  • /includes/data-stores/class-wc-shipping-zone-data-store.php line 89
    			 * 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
    		$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