Documentation

Admin
in package

Class provide all admin-specific functionality of the plugin.

Defines the plugin name, version, and enqueues all admin-specific stylesheets and JavaScript.

Tags
since
2.8.0

Table of Contents

$wysiwyg  : WYSIWYG
The WYSIWYG editor integration object.
$plugin_name  : string
The ID of this plugin.
$settings  : Settings
The plugin settings object.
$version  : string
The version of this plugin.
__construct()  : mixed
Initialize the class and set its properties.
action_links()  : array<string|int, string>
Appends the Plugin links for display in the dashboard Plugins page.
enqueue_scripts()  : void
Register the JavaScript for the admin area.
enqueue_styles()  : void
Register the stylesheets for the admin area.
load_dependencies()  : void
Load the required admin-specific dependencies.

Properties

$wysiwyg

The WYSIWYG editor integration object.

public WYSIWYG $wysiwyg

The WYSIWYG editor integration object.

Tags
since
2.8.0

$plugin_name

The ID of this plugin.

private string $plugin_name
Tags
access

private

since
2.8.0
see
Footnotes::$plugin_name

$settings

The plugin settings object.

private Settings $settings
Tags
access

private

since
2.8.0

$version

The version of this plugin.

private string $version
Tags
access

private

since
2.8.0
see
Footnotes::$version

Methods

__construct()

Initialize the class and set its properties.

public __construct(string $plugin_name, string $version, Settings $settings) : mixed
Parameters
$plugin_name : string
$version : string
$settings : Settings
Tags
since
2.8.0
Return values
mixed

Appends the Plugin links for display in the dashboard Plugins page.

public action_links(array<string|int, string> $plugin_links) : array<string|int, string>
Parameters
$plugin_links : array<string|int, string>

The default set of links to display.

Tags
since
1.5.0
since
2.8.0

Moved from Hooks class to Admin.

Return values
array<string|int, string>

The full set of links to display.

enqueue_scripts()

Register the JavaScript for the admin area.

public enqueue_scripts() : void
Tags
since
2.8.0
Return values
void

enqueue_styles()

Register the stylesheets for the admin area.

public enqueue_styles() : void
Tags
since
2.8.0
Return values
void

load_dependencies()

Load the required admin-specific dependencies.

private load_dependencies() : void

Includes the following files that provide the admin-specific functionality of this plugin:

  • WYSIWYG: Provides plugin integration with the WYSIWYG editor.
  • Settings: Defines the plugin dashboard page(s).
Tags
access

private

since
2.8.0
Return values
void

Search results