Documentation

Footnotes_Admin
in package

The admin-specific functionality of the plugin.

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

Tags
subpackage

admin

Table of Contents

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

Properties

$plugin_name

The ID of this plugin.

private string $plugin_name
Tags
since
2.8.0
access

private

$version

The version of this plugin.

private string $version
Tags
since
2.8.0
access

private

Methods

__construct()

Initialize the class and set its properties.

public __construct(string $plugin_name, string $version) : mixed
Parameters
$plugin_name : string

The name of this plugin.

$version : string

The version of this plugin.

Tags
since
2.8.0
Return values
mixed

enqueue_scripts()

Register the JavaScript for the admin area.

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

enqueue_styles()

Register the stylesheets for the admin area.

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

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

public footnotes_action_links(array<string|int, string> $links) : array<string|int, string>
Parameters
$links : array<string|int, string>

The default set of links to display.

Tags
since
1.5.0
since
2.8.0

Moved into Footnote_Admin class.

Return values
array<string|int, string>

The full set of links to display.

load_dependencies()

Load the required admin-specific dependencies.

private load_dependencies() : mixed

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

  • Footnotes_WYSIWYG. Provides plugin integration with the WYSIWYG editor.
  • Footnotes_Layout_Settings. Defines the plugin dashboard page(s).
Tags
since
2.8.0
access

private

Return values
mixed

Search results