WooCommerce Code Reference

Search results

WooCommerce

Packages

Abstracts
Admin
Views
admin
Classes
Reports
CLI
l10n
Cli
DataStores
DataStore
Emails
Gateways
Integrations
LogHandlers
PaymentTokens
Shipping
Tracks
Functions
WooCommerce
Templates
Uninstaller

Interfaces, Classes and Traits

WC_Notes_Run_Db_Update
WC_Notes_Run_Db_Update.
WC_Meta_Data
Meta data class.
WooCommerce
Main WooCommerce Class.
WC_CLI_REST_Command
Main Command for WooCommere CLI.
WC_CLI_Runner
WC API to WC CLI Bridge.
WC_CLI_Tool_Command
Hooks up our system status tools to the CLI.
WC_CLI_Update_Command
Allows updates via CLI.
WC_Customizer_Control_Cropping
WC_Customizer_Control_Cropping class.
WC_Shop_Customizer
WC_Shop_Customizer class.

Table of Contents

WC() Returns the main instance of WC.
wc_get_container() Returns the WooCommerce PSR11-compatible object container.

Functions

wc_get_container()

Returns the WooCommerce PSR11-compatible object container.

wc_get_container( ) : ContainerInterface

Code in the includes directory should use the container to get instances of classes in the src directory.

Return values
ContainerInterface

The WooCommerce PSR11 container.

Back to the top