Plugin
in package

Main Plugin Bootstrap Class

Manages the dependency injection container and plugin initialization.

Tags
since
4.0.0

Table of Contents

Properties

$container  : Container
Container instance.
$plugin_file  : string
Plugin file path.
$plugin_name  : string
Plugin basename.
$plugin_path  : string
Plugin directory path.
$service_provider  : ServiceProvider
$version  : string
Plugin version.

Methods

__construct()  : mixed
Constructor.
container()  : Container
Get the singleton container instance.
version()  : string
Get plugin version.
critical_hooks()  : void
These are hooks critical to the Stripe plugin. We register them here because some 3rd party plugins can trigger these actions very early which makes it necessary to register as soon as possible.
load_text_domain()  : mixed
register_classes()  : void
Register classes used by the Container.
register_constants()  : void
Register early dependencies (no WooCommerce dependency required).

Properties

$plugin_file

Plugin file path.

private string $plugin_file

$plugin_path

Plugin directory path.

private string $plugin_path

Methods

__construct()

Constructor.

public __construct(string $version, mixed $plugin_file) : mixed
Parameters
$version : string

Plugin version.

$plugin_file : mixed

version()

Get plugin version.

public version() : string
Return values
string

critical_hooks()

These are hooks critical to the Stripe plugin. We register them here because some 3rd party plugins can trigger these actions very early which makes it necessary to register as soon as possible.

private critical_hooks() : void

register_classes()

Register classes used by the Container.

private register_classes() : void

These services require WooCommerce to be loaded.

register_constants()

Register early dependencies (no WooCommerce dependency required).

private register_constants() : void

These services can be registered before WooCommerce is loaded.


        
On this page

Search results