Class WooCommerce

Main WooCommerce Class

Final
Package: WooCommerce
Author: WooThemes
Version: 2.1.0
Class: WooCommerce
Located at woocommerce.php

Methods summary

public static WooCommerce
# instance( )

Main WooCommerce Instance

Main WooCommerce Instance

Ensures only one instance of WooCommerce is loaded or can be loaded.

Returns

WooCommerce
- Main instance

Since

2.1

See

WC()
public
# __clone( )

Cloning is forbidden.

Cloning is forbidden.

Since

2.1
public
# __wakeup( )

Unserializing instances of this class is forbidden.

Unserializing instances of this class is forbidden.

Since

2.1
public WooCommerce
# __construct( )

WooCommerce Constructor.

WooCommerce Constructor.

Returns

WooCommerce
public mixed
# __get( mixed $key )

Auto-load in-accessible properties on demand.

Auto-load in-accessible properties on demand.

Parameters

$key
mixed
$key

Returns

mixed
public array
# action_links( mixed $links )

Show action links on the plugin screen

Show action links on the plugin screen

Parameters

$links
mixed
$links

Returns

array
public
# autoload( mixed $class )

Auto-load WC classes on demand to reduce memory consumption.

Auto-load WC classes on demand to reduce memory consumption.

Parameters

$class
mixed
$class
public
# ajax_includes( )

Include required ajax files.

Include required ajax files.

public
# frontend_includes( )

Include required frontend files.

Include required frontend files.

public
# include_template_functions( )

Function used to Init WooCommerce Template Functions - This makes them pluggable by plugins and themes.

Function used to Init WooCommerce Template Functions - This makes them pluggable by plugins and themes.

public
# include_widgets( )

Include core widgets

Include core widgets

public
# init( )

Init WooCommerce when WordPress Initialises.

Init WooCommerce when WordPress Initialises.

public
# load_plugin_textdomain( )

Load Localisation files.

Load Localisation files.

Note: the first-loaded translation file overrides any following ones if the same translation is present

public
# setup_environment( )

Ensure theme and server variable compatibility and setup image sizes..

Ensure theme and server variable compatibility and setup image sizes..

public string
# plugin_url( )

Get the plugin url.

Get the plugin url.

Returns

string
public string
# plugin_path( )

Get the plugin path.

Get the plugin path.

Returns

string
public string
# template_path( )

Get the template path.

Get the template path.

Returns

string
public string
# ajax_url( )

Get Ajax URL.

Get Ajax URL.

Returns

string
public string
# api_request_url( mixed $request, mixed $ssl = null )

Return the WC API URL for a given request

Return the WC API URL for a given request

Parameters

$request
mixed
$request
$ssl
mixed
$ssl (default: null)

Returns

string
public
# send_transactional_email( )

Init the mailer and call the notifications for the current filter.

Init the mailer and call the notifications for the current filter.

public WC_Checkout
# checkout( )

Get Checkout Class.

Get Checkout Class.

Returns

WC_Checkout
public WC_Payment_Gateways
# payment_gateways( )

Get gateways class

Get gateways class

Returns

WC_Payment_Gateways
public WC_Shipping
# shipping( )

Get shipping class

Get shipping class

Returns

WC_Shipping
public WC_Email
# mailer( )

Email Class.

Email Class.

Returns

WC_Email

Magic methods summary

Properties summary

public string $version
#
protected static WooCommerce $_instance
#

The single instance of the class

The single instance of the class

Since

2.1
public WC_Session $session
#

session

session

public WC_Query $query
#

$query

$query

public WC_Product_Factory $product_factory
#

$product_factory

$product_factory

public WC_Countries $countries
#

$countries

$countries

public WC_Integrations $integrations
#

$integrations

$integrations

public WC_Cart $cart
#

$cart

$cart

public WC_Customer $customer
#

$customer

$customer

WooCommerce API documentation generated by ApiGen 2.8.0