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
Table of Contents
- $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
$version
The version of this plugin.
private
string
$version
Tags
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
Return values
mixed —enqueue_scripts()
Register the JavaScript for the admin area.
public
enqueue_scripts() : mixed
Tags
Return values
mixed —enqueue_styles()
Register the stylesheets for the admin area.
public
enqueue_styles() : mixed
Tags
Return values
mixed —footnotes_action_links()
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
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).