Plugin extends Premium_Plugin implements Licensed_Plugin, Registerable, Translatable, Service_Provider Uses Check_WP_Requirements

The main plugin class.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Licensed_Plugin
Registerable
Translatable
Service_Provider

Table of Contents

ITEM_ID  = 518670
NAME  = 'WooCommerce Discount Manager'
$services  : array<string|int, mixed>
List of services.
__construct()  : mixed
Constructs and initalizes the main plugin class.
cache()  : Cache
Returns access to the cache class.
db()  : Database
Returns the query builder.
load_textdomain()  : void
Make plugin translatable
maybe_load_plugin()  : void
Maybe boot the plugin after requirements are met.
orm()  : EntityManager
Returns the ORM.
products()  : Products
Returns access to the cart class.
register()  : void
Hook into WordPress
templates()  : Templates
Returns access to the template loader class.
types()  : Types_Manager
Returns access to the types manager class.

Constants

ITEM_ID

public mixed ITEM_ID = 518670

NAME

public mixed NAME = 'WooCommerce Discount Manager'

Properties

$services

List of services.

private array<string|int, mixed> $services = []

Methods

__construct()

Constructs and initalizes the main plugin class.

public __construct([string $file = null ][, string $version = '1.0.0' ]) : mixed
Parameters
$file : string = null

The main plugin file.

$version : string = '1.0.0'

The current plugin version.

Return values
mixed

cache()

Returns access to the cache class.

public cache() : Cache
Return values
Cache

db()

Returns the query builder.

public db() : Database
Return values
Database

load_textdomain()

Make plugin translatable

public load_textdomain() : void
Return values
void

maybe_load_plugin()

Maybe boot the plugin after requirements are met.

public maybe_load_plugin() : void
Return values
void

orm()

Returns the ORM.

public orm() : EntityManager
Return values
EntityManager

register()

Hook into WordPress

public register() : void
Return values
void

templates()

Returns access to the template loader class.

public templates() : Templates
Return values
Templates

Search results