pfeifferNet

pLogin
in package

FinalYes

The core plugin class.

  • Define internationalisation, shortcodes, admin-specific hooks, common and public-facing site hooks.
  • Instantiate all the classes that hook into core functions.
  • Because of this design, it may have a high coupling count.
Tags
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

since
1.0.0
since
5.11.0

Removed pNet decoupling.

Table of Contents

Properties

$basename  : string
The plugin basename.
$loader  : Loader
The loader that's responsible for maintaining and registering all hooks that power the plugin.

Methods

__construct()  : void
Define the core functionality of the plugin.
load_last()  : array<string|int, mixed>
Load this plugin last.
run()  : void
Run the loader to execute all of the hooks with WordPress.
define_admin_hooks()  : void
Register all of the hooks related to the admin area functionality of the plugin.
define_common_hooks()  : void
Register the hooks used in both the public and admin areas.
define_public_hooks()  : void
Register all of the hooks related to the public-facing functionality of the plugin.

Properties

$basename

The plugin basename.

private string $basename = ''
Tags
since
6.3.0

$loader

The loader that's responsible for maintaining and registering all hooks that power the plugin.

private Loader $loader
Tags
since
1.0.0

Methods

__construct()

Define the core functionality of the plugin.

public __construct() : void
  • Load the dependencies.
  • Define the locale (if used).
  • Set the common, public and admin hooks.
Tags
since
1.0.0
uses
Loader
uses
get_plugin_metadata()

run()

Run the loader to execute all of the hooks with WordPress.

public run() : void
Tags
since
1.0.0

define_admin_hooks()

Register all of the hooks related to the admin area functionality of the plugin.

private define_admin_hooks() : void
Tags
since
1.0.0
since
5.11.0

Removed pNet decoupling.

since
5.11.0

Added plugin updater.

uses
get_plugin_metadata()

define_common_hooks()

Register the hooks used in both the public and admin areas.

private define_common_hooks() : void
Tags
since
5.7.0
since
5.11.0

Removed pNet decoupling.

define_public_hooks()

Register all of the hooks related to the public-facing functionality of the plugin.

private define_public_hooks() : void
Tags
since
1.0.0

        
On this page

Search results