Property | Type | Description | |
---|---|---|---|
$cart | WC_Cart | Cart instance. | |
$countries | WC_Countries | Countries instance. | |
$customer | WC_Customer | Customer instance. | |
$integrations | WC_Integrations | Integrations instance. | |
$order_factory | WC_Order_Factory | Order factory instance. | |
$product_factory | WC_Product_Factory | Product factory instance. | |
$query | WC_Query | Query instance. | |
$session | WC_Session | Session instance. | |
$structured_data | WC_Structured_Data | Structured data instance. | |
$version | string | WooCommerce version. |
Property | Type | Description | |
---|---|---|---|
$_instance | WooCommerce | The single instance of the class. |
Method | Description | |
---|---|---|
__clone ( ) | Cloning is forbidden. | |
__construct ( ) | WooCommerce Constructor. | |
__get ( mixed $key ) : mixed | Auto-load in-accessible properties on demand. | |
__wakeup ( ) | Unserializing instances of this class is forbidden. | |
ajax_url ( ) : string | Get Ajax URL. | |
api_request_url ( string $request, mixed $ssl = null ) : string | Return the WC API URL for a given request. | |
checkout ( ) : WC_Checkout | Get Checkout Class. | |
frontend_includes ( ) | Include required frontend files. | |
include_template_functions ( ) | Function used to Init WooCommerce Template Functions - This makes them pluggable by plugins and themes. | |
includes ( ) | Include required core files used in admin and on the frontend. | |
init ( ) | Init WooCommerce when WordPress Initialises. | |
instance ( ) : WooCommerce | Main WooCommerce Instance. | |
load_plugin_textdomain ( ) | Load Localisation files. | |
mailer ( ) : WC_Emails | Email Class. | |
payment_gateways ( ) : WC_Payment_Gateways | Get gateways class. | |
plugin_path ( ) : string | Get the plugin path. | |
plugin_url ( ) : string | Get the plugin url. | |
setup_environment ( ) | Ensure theme and server variable compatibility and setup image sizes. | |
shipping ( ) : WC_Shipping | Get shipping class. | |
template_path ( ) : string | Get the template path. | |
wpdb_table_fix ( ) | WooCommerce Payment Token Meta API and Term/Order item Meta - set table names. |
Method | Description | |
---|---|---|
add_image_sizes ( ) | Add WC Image sizes to WP. | |
add_thumbnail_support ( ) | Ensure post thumbnail support is turned on. | |
define ( string $name, string | boolean $value ) | Define constant if not already set. | |
define_constants ( ) | Define WC Constants. | |
init_hooks ( ) | Hook into actions and filters. | |
is_request ( string $type ) : boolean | What type of request is this? | |
load_webhooks ( ) | Load & enqueue active webhooks. |
public include_template_functions ( ) |
public includes ( ) |
public static instance ( ) : WooCommerce | ||
return | WooCommerce | - Main instance. |
public load_plugin_textdomain ( ) |
public payment_gateways ( ) : WC_Payment_Gateways | ||
return | WC_Payment_Gateways |
public setup_environment ( ) |
public template_path ( ) : string | ||
return | string |
public wpdb_table_fix ( ) |
protected static WooCommerce $_instance | ||
return | WooCommerce |
public WC_Countries $countries | ||
return | WC_Countries |
public WC_Integrations $integrations | ||
return | WC_Integrations |
public WC_Order_Factory $order_factory | ||
return | WC_Order_Factory |
public WC_Product_Factory $product_factory | ||
return | WC_Product_Factory |
public WC_Structured_Data $structured_data | ||
return | WC_Structured_Data |