Tkt_Shortcodes_Admin
in package

The admin-specific functionality of the plugin.

Description

Defines the plugin name, version, and two hooks to enqueue the admin-facing stylesheet and JavaScript. As you add hooks and methods, update this description.

Tags
author

Beda Schmid beda@tukutoi.com

Table of Contents

$declarations  : array<string|int, mixed>
The Configuration object.
$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.
enqueue_scripts()  : mixed
Register the JavaScript for the admin area.
enqueue_styles()  : mixed
Register the stylesheets for the admin area.
insert_shortcodes_menu()  : mixed
Add a Insert ShortCodes menu.
tkt_scs_get_shortcode_form()  : mixed
AJAX Callback to get the ShortCode form to insert.
shortcodes_dialog()  : mixed
The dialog to show all available ShortCodes.

Properties

$declarations

The Configuration object.

private array<string|int, mixed> $declarations
Description

All configurations and declarations of this plugin.

Tags
since
1.0.0
access

private

$plugin_name

The ID of this plugin.

private string $plugin_name
Description

The ID of this plugin.

Tags
since
1.0.0
access

private

$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
since
1.0.0
access

private

$version

The version of this plugin.

private string $version
Description

The current version of this plugin.

Tags
since
1.0.0
access

private

Methods

__construct()

Initialize the class and set its properties.

public __construct(string $plugin_name, string $plugin_prefix, string $version, array<string|int, mixed> $declarations) : 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.
$declarations
(array<string|int, mixed>) The Configuration object.
Tags
since
1.0.0
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
since
1.0.0
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
since
1.0.0
Return
(mixed)

insert_shortcodes_menu()

Add a Insert ShortCodes menu.

public insert_shortcodes_menu(int $editor_id) : mixed
Parameters
$editor_id
(int) The Editor ID.
Tags
since
1.0.0
Return
(mixed)

tkt_scs_get_shortcode_form()

AJAX Callback to get the ShortCode form to insert.

public tkt_scs_get_shortcode_form() : mixed
Tags
since
1.0.0
Return
(mixed)

shortcodes_dialog()

The dialog to show all available ShortCodes.

private shortcodes_dialog() : mixed
Tags
since
1.0.0
Return
(mixed)

        

Search results