The public-facing functionality of the plugin.
Defines the plugin name, version, and hooks for the public-facing stylesheet and JavaScript.
package |
WordPress_Security_Txt |
---|---|
subpackage |
WordPress_Security_Txt/public |
author |
Austin Heap me@austinheap.com |
__construct(string $plugin_name, string $version)
since | 1.0.0 |
---|---|
string
The name of the plugin.
string
The version of this plugin.
apply_routes(string $uri)
string
cache_clear() : boolean
since | 1.0.0 |
---|---|
boolean
cache_cleared( $reset = false) : boolean
since | 1.0.0 |
---|---|
boolean
cache_file() : string
since | 1.0.0 |
---|---|
string
get_security_txt_cache() : mixed
mixed
is_secure() : boolean
since | 1.0.0 |
---|---|
boolean
redirect(string $document) : void
since | 1.0.0 |
---|
string
render_gpg_txt() : string
string
render_security_txt() : string
string
route() : void
show(string $document) : void
since | 1.0.0 |
---|
string
write_security_txt_cache(string $data) : void
string
plugin_name : string
since | |
---|---|
access |
private |
var |
The ID of this plugin. |
string
version : string
since | |
---|---|
access |
private |
var |
The current version of this plugin. |
string
cache_cleared : boolean
since | |
---|---|
access |
private |
var |
The plugin cache cleared flag. |
boolean