wc_get_container()
Returns the WooCommerce PSR11-compatible object container.
Description Description
Code in the includes
directory should use the container to get instances of classes in the src
directory.
Return Return
(PsrContainerContainerInterface) The WooCommerce PSR11 container.
Source Source
File: woocommerce.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |