The core plugin class.
This is used to define internationalization, admin-specific hooks, and public-facing site hooks.
Also maintains the unique identifier of this plugin as well as the current version of the plugin.
| since | 1.0.0 |
|---|---|
| package |
WordPress_Security_Txt |
| subpackage |
WordPress_Security_Txt/includes |
| author |
Austin Heap me@austinheap.com |
__construct()
Set the plugin name and the plugin version that can be used throughout the plugin. Load the dependencies, define the locale, and set the hooks for the admin area and the public-facing side of the site.
| since | 1.0.0 |
|---|---|
define_admin_hooks()
| since | 1.0.0 |
|---|---|
| access |
private |
define_public_hooks()
| since | 1.0.0 |
|---|---|
| access |
private |
event( $name, $version = WORDPRESS_SECURITY_TXT_VERSION) : void
| since | 1.0.0 |
|---|---|
get_loader() : \WordPress_Security_Txt_Loader
get_plugin_name() : string
| since | 1.0.0 |
|---|---|
stringThe name of the plugin.
get_version() : string
| since | 1.0.0 |
|---|---|
stringThe version number of the plugin.
import_lib() : void
| since | 1.0.0 |
|---|---|
load_dependencies()
Include the following files that make up the plugin:
Create an instance of the loader which will be used to register the hooks with WordPress.
| since | 1.0.0 |
|---|---|
| access |
private |
run()
| since | 1.0.0 |
|---|---|
set_locale()
Uses the WordPress_Security_Txt_i18n class in order to set the domain and to register the hook with WordPress.
| since | 1.0.0 |
|---|---|
| access |
private |
loader : \WordPress_Security_Txt_Loader
| since | |
|---|---|
| access |
protected |
| var |
Maintains and registers all hooks for the plugin. |
\WordPress_Security_Txt_Loader
plugin_name : string
| since | |
|---|---|
| access |
protected |
| var |
The string used to uniquely identify this plugin. |
string
version : string
| since | |
|---|---|
| access |
protected |
| var |
The current version of the plugin. |
string