Documentation

Graphic_Data_Plugin
in package

The core plugin class.

This is used to define admin-specific hooks, and public-facing site hooks.

Also maintains the unique identifier of this plugin as well as the current version of the plugin.

Tags
since
1.0.0

Table of Contents

Properties

$loader  : Graphic_Data_Loader
The loader that's responsible for maintaining and registering all hooks that power the plugin.
$plugin_name  : string
The unique identifier of this plugin.
$version  : string
The current version of the plugin.

Methods

__construct()  : mixed
Define the core functionality of the plugin.
define_admin_hooks()  : mixed
Register all of the hooks related to the admin area functionality of the plugin.
get_loader()  : Graphic_Data_Loader
The reference to the class that orchestrates the hooks with the plugin.
run()  : mixed
Run the loader to execute all of the hooks with WordPress.
load_dependencies()  : mixed
Load the required dependencies for this plugin.

Properties

$loader

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

protected Graphic_Data_Loader $loader

Maintains and registers all hooks for the plugin.

Tags
since
1.0.0
access

protected

$plugin_name

The unique identifier of this plugin.

protected string $plugin_name

The string used to uniquely identify this plugin.

Tags
since
1.0.0
access

protected

$version

The current version of the plugin.

protected string $version

The current version of the plugin.

Tags
since
1.0.0
access

protected

Methods

__construct()

Define the core functionality of the plugin.

public __construct() : mixed

Set the plugin name and the plugin version that can be used throughout the plugin. Load the dependencies and set the hooks for the admin area and the public-facing side of the site.

Tags
since
1.0.0

define_admin_hooks()

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

public define_admin_hooks() : mixed
Tags
since
1.0.0
access

private

get_loader()

The reference to the class that orchestrates the hooks with the plugin.

public get_loader() : Graphic_Data_Loader
Tags
since
1.0.0
Return values
Graphic_Data_Loader

Orchestrates the hooks of the plugin.

run()

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

public run() : mixed
Tags
since
1.0.0

load_dependencies()

Load the required dependencies for this plugin.

private load_dependencies() : mixed

Include the following files that make up the plugin:

  • Graphic_Data_Loader. Orchestrates the hooks of the plugin.
  • Admin. Defines all hooks for the admin area.
  • Graphic_Data_Public. Defines all hooks for the public side of the site.

Create an instance of the loader which will be used to register the hooks with WordPress.

Tags
since
1.0.0
access

private


        
On this page

Search results