Свойство | 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. |
Свойство | Type | Description | |
---|---|---|---|
$_instance | WooCommerce | The single instance of the class. |
Méthode | 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. |
Méthode | 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 checkout ( ) : WC_Checkout | ||
Résultat | WC_Checkout |
public include_template_functions ( ) |
public includes ( ) |
public static instance ( ) : WooCommerce | ||
Résultat | WooCommerce | - Main instance. |
public load_plugin_textdomain ( ) |
public payment_gateways ( ) : WC_Payment_Gateways | ||
Résultat | WC_Payment_Gateways |
public setup_environment ( ) |
public shipping ( ) : WC_Shipping | ||
Résultat | WC_Shipping |
public template_path ( ) : string | ||
Résultat | string |
public wpdb_table_fix ( ) |
protected static WooCommerce $_instance | ||
Résultat | WooCommerce |
public WC_Countries $countries | ||
Résultat | WC_Countries |
public WC_Integrations $integrations | ||
Résultat | WC_Integrations |
public WC_Order_Factory $order_factory | ||
Résultat | WC_Order_Factory |
public WC_Product_Factory $product_factory | ||
Résultat | WC_Product_Factory |
public WC_Structured_Data $structured_data | ||
Résultat | WC_Structured_Data |