WooCommerce Code Reference

Bootstrap
in package

Takes care of bootstrapping the plugin.

Tags
since
2.5.0

Table of Contents

$container  : Container
Holds the Dependency Injection Container
$migration  : Migration
Holds the Migration instance
$package  : Package
Holds the Package instance
__construct()  : mixed
Constructor
add_build_notice()  : mixed
Add a notice stating that the build has not been done yet.
deprecated_dependency()  : mixed
Throws a deprecation notice for a dependency without breaking requests.
init()  : mixed
Init the package - load the blocks library and define constants.
is_built()  : bool
See if files have been built or not.
load_interactivity_api()  : mixed
Load and set up the Interactivity API if enabled.
register_dependencies()  : mixed
Register core dependencies with the container.
register_payment_methods()  : mixed
Register payment method integrations with the container.

Properties

Methods

add_build_notice()

Add a notice stating that the build has not been done yet.

protected add_build_notice() : mixed
Return values
mixed

deprecated_dependency()

Throws a deprecation notice for a dependency without breaking requests.

protected deprecated_dependency(string $function, string $version[, string $replacement = '' ][, string $trigger_error_version = '' ]) : mixed
Parameters
$function : string

Class or function being deprecated.

$version : string

Version in which it was deprecated.

$replacement : string = ''

Replacement class or function, if applicable.

$trigger_error_version : string = ''

Optional version to start surfacing this as a PHP error rather than a log. Defaults to $version.

Return values
mixed

init()

Init the package - load the blocks library and define constants.

protected init() : mixed
Return values
mixed

load_interactivity_api()

Load and set up the Interactivity API if enabled.

protected load_interactivity_api() : mixed
Return values
mixed

register_dependencies()

Register core dependencies with the container.

protected register_dependencies() : mixed
Return values
mixed

register_payment_methods()

Register payment method integrations with the container.

protected register_payment_methods() : mixed
Return values
mixed