Class WC_Shipping_Method
WooCommerce Shipping Method Class
Extended by shipping methods to handle shipping calculations etc.
- WC_Settings_API
- WC_Shipping_Method
Direct known subclasses
WC_Shipping_Flat_Rate
,
WC_Shipping_Free_Shipping
,
WC_Shipping_Local_Delivery
,
WC_Shipping_Local_Pickup
Indirect known subclasses
Package: WooCommerce\Abstracts
Category: Abstract Class
Author: WooThemes
Version: 1.6.4
Class: WC_Shipping_Method
Located at includes/abstracts/abstract-wc-shipping-method.php
Methods summary
public
boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
float
|
|
public
boolean
|
Methods inherited from WC_Settings_API
admin_options()
,
display_errors()
,
format_settings()
,
generate_checkbox_html()
,
generate_decimal_html()
,
generate_multiselect_html()
,
generate_password_html()
,
generate_price_html()
,
generate_select_html()
,
generate_settings_html()
,
generate_text_html()
,
generate_textarea_html()
,
generate_title_html()
,
get_custom_attribute_html()
,
get_description_html()
,
get_form_fields()
,
get_option()
,
get_tooltip_html()
,
init_form_fields()
,
init_settings()
,
process_admin_options()
,
validate_checkbox_field()
,
validate_decimal_field()
,
validate_multiselect_field()
,
validate_password_field()
,
validate_price_field()
,
validate_select_field()
,
validate_settings_fields()
,
validate_text_field()
,
validate_textarea_field()
Magic methods summary
Properties summary
public
string
|
$id |
#
Unique ID for the shipping method - must be set. |
public
integer
|
$number |
#
Optional instance ID. |
public
string
|
$method_title |
#
Method title |
public
string
|
$title |
#
User set title |
public
boolean
|
$availability |
#
True if the method is available. |
public
array
|
$countries |
#
Array of countries this method is enabled for. |
public
string
|
$tax_status |
#
If 'taxable' tax will be charged for this method (if applicable) |
public
mixed
|
$fee |
#
Fees for the method |
public
float
|
$minimum_fee |
#
Minimum fee for the method |
public
boolean
|
$enabled |
#
Enabled for disabled |
public
boolean
|
$has_settings |
#
Whether the method has settings or not (In WooCommerce > Settings > Shipping) |
public
array
|
$supports |
#
Features this method supports. |
public
array
|
$rates |
#
This is an array of rates - methods must populate this array to register shipping costs |
Properties inherited from WC_Settings_API
$errors
,
$form_fields
,
$plugin_id
,
$sanitized_fields
,
$settings