Cp_Plgn_Drctry_Admin
in package
Class to handle general Admin Area Features.
Description
Enqueues scripts and styles Adds Plugin Pages to Admin Menu Renders settings and plugin list page
Tags
Table of Contents
- $plugin_name : string
- The ID of this plugin.
- $plugin_prefix : string
- The unique prefix of this plugin.
- $version : string
- The version of this plugin.
- __construct() : mixed
- Initialize the class and set its properties.
- add_menu_pages() : mixed
- Add Menu Pages.
- dir_settings_render() : mixed
- Render the settings page.
- enqueue_scripts() : mixed
- Register the JavaScript for the admin area.
- enqueue_styles() : mixed
- Register the stylesheets for the admin area.
- render() : mixed
- Render the plugins list page.
Properties
$plugin_name
The ID of this plugin.
private
string
$plugin_name
Description
The ID of this plugin.
Tags
$plugin_prefix
The unique prefix of this plugin.
private
string
$plugin_prefix
Description
The string used to uniquely prefix technical functions of this plugin.
Tags
$version
The version of this plugin.
private
string
$version
Description
The current version of this plugin.
Tags
Methods
__construct()
Initialize the class and set its properties.
public
__construct(string $plugin_name, string $plugin_prefix, string $version) : mixed
Parameters
- $plugin_name
- (string) The name of this plugin.
- $plugin_prefix
- (string) The unique prefix of this plugin.
- $version
- (string) The version of this plugin.
Tags
Return
(mixed)add_menu_pages()
Add Menu Pages.
public
add_menu_pages() : mixed
Tags
Return
(mixed)dir_settings_render()
Render the settings page.
public
dir_settings_render() : mixed
Tags
Return
(mixed)enqueue_scripts()
Register the JavaScript for the admin area.
public
enqueue_scripts(string $hook_suffix) : mixed
Parameters
- $hook_suffix
- (string) The current admin page.
Tags
Return
(mixed)enqueue_styles()
Register the stylesheets for the admin area.
public
enqueue_styles(string $hook_suffix) : mixed
Parameters
- $hook_suffix
- (string) The current admin page.
Tags
Return
(mixed)render()
Render the plugins list page.
public
render() : mixed