pfeifferNet

pNet
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

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.
$validation_hooks  : array<string|int, string>
The array of extra validation filter hooks used by reCAPTCHA.

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.
define_shortcodes()  : void
Register the shortcodes.

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

$validation_hooks

The array of extra validation filter hooks used by reCAPTCHA.

private array<string|int, string> $validation_hooks = array()
Tags
since
5.8.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.
  • Set the shortcodes.
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

Add 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
1.0.0

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

define_shortcodes()

Register the shortcodes.

private define_shortcodes() : void
Tags
since
1.1.0
since
5.5.0

Uses standard form of shortcodes.


        
On this page

Search results