• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / includes/class-wc-shipping-zone.php


Lines:

1 to 37 of 37
<?php

/**
 * Represents a single shipping zone
 *
 * @since   2.6.0
 * @version 3.0.0
 * @package WooCommerce\Classes
 */

defined( 'ABSPATH' ) || exit;

require_once __DIR__ . '/legacy/class-wc-legacy-shipping-zone.php';

/* class WC_Shipping_Zone */
/* function WC_Shipping_Zone::__construct() – Constructor for zones. */
/* function WC_Shipping_Zone::get_zone_name() – Get zone name. */
/* function WC_Shipping_Zone::get_zone_order() – Get zone order. */
/* function WC_Shipping_Zone::get_zone_locations() – Get zone locations. */
/* function WC_Shipping_Zone::get_formatted_location() – Return a text string representing what this zone is for. */
/* function WC_Shipping_Zone::get_shipping_methods() – Get shipping methods linked to this zone. */
/* function WC_Shipping_Zone::set_zone_name() – Set zone name. */
/* function WC_Shipping_Zone::set_zone_order() – Set zone order. Value to set. */
/* function WC_Shipping_Zone::set_zone_locations() – Set zone locations. */
/* function WC_Shipping_Zone::save() – Save zone data to the database. */
/* function WC_Shipping_Zone::generate_zone_name() – Generate a zone name based on location. */
/* function WC_Shipping_Zone::location_is_continent() – Location type detection. */
/* function WC_Shipping_Zone::location_is_country() – Location type detection. */
/* function WC_Shipping_Zone::location_is_state() – Location type detection. */
/* function WC_Shipping_Zone::location_is_postcode() – Location type detection. */
/* function WC_Shipping_Zone::is_valid_location_type() – Is passed location type valid? */
/* function WC_Shipping_Zone::add_location() – Add location (state or postcode) to a zone. */
/* function WC_Shipping_Zone::clear_locations() – Clear all locations for this zone. */
/* function WC_Shipping_Zone::set_locations() – Set locations. */
/* function WC_Shipping_Zone::add_shipping_method() – Add a shipping method to this zone. */
/* function WC_Shipping_Zone::delete_shipping_method() – Delete a shipping method from a zone. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: includes/class-wc-shipping-zone.php
      Plugin ref: WooCommerce
      Version: 4.8.0
      Deprecated?: No
      API Letters: C,I,S,W,Z

      Published: 26th November 2019 | Last updated: 10th December 2020

      Primary Sidebar

      Information

      File name: includes/class-wc-shipping-zone.php
      Plugin ref: WooCommerce
      Version: 4.8.0
      Deprecated?: No
      API Letters: C,I,S,W,Z

      includes

      Footer

      WooCommerce a2z
      WooCommerce a2z
      WooCommerce
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  woocommerce.wp-a2z.org
      © Copyright WooCommerce a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites