Tkt_Search_And_Filter_Public
in package
The public-facing functionality of the plugin.
Description
Defines the plugin name, version, and two hooks to enqueue the public-facing stylesheet and JavaScript. As you add hooks and methods, update this description.
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.
- enqueue_scripts() : mixed
- Register the JavaScript for the public-facing side of the site.
- enqueue_styles() : mixed
- Register the stylesheets for the public-facing side of the site.
- maybe_localize_script() : mixed
- Maybe localise scripts on demand.
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 the plugin.
- $plugin_prefix
- (string) The unique prefix of this plugin.
- $version
- (string) The version of this plugin.
Tags
Return
(mixed)enqueue_scripts()
Register the JavaScript for the public-facing side of the site.
public
enqueue_scripts() : mixed
Tags
Return
(mixed)enqueue_styles()
Register the stylesheets for the public-facing side of the site.
public
enqueue_styles() : mixed
Tags
Return
(mixed)maybe_localize_script()
Maybe localise scripts on demand.
public
maybe_localize_script(string $tag, string $object, string $item[, array<string|int, mixed> $value = array() ]) : mixed
Parameters
- $tag
- (string) The Script Tag to localise.
- $object
- (string) The Object to localise.
- $item
- (string) The Localised Array Key to add.
- $value
-
(array<string|int, mixed>) The values to add to $item. Defaults to:
array()