Properties

$loader

$loader : \Jomres_Loader

The loader that's responsible for maintaining and registering all hooks that power Jomres.

Type

\Jomres_Loader — Maintains and registers all Jomres hooks.

$plugin_name

$plugin_name : string

The Jomres plugin unique identifier.

Type

string — The string used to uniquely identify the Jomres plugin.

$version

$version : string

The current Jomres version.

Type

string — The current Jomres version.

$configInstance

$configInstance : object

The Jomres instance.

Type

object — The Jomres instance.

$js

$js : array

The Jomres javascript.

Type

array — The Jomres javascript.

$css

$css : array

The Jomres css.

Type

array — The Jomres css.

$custom_meta

$custom_meta : array

The Jomres custom meta.

Type

array — The Jomres custom meta.

$content

$content : string

The Jomres output.

Type

string — The Jomres output.

$meta_title

$meta_title : string

The Jomres page meta title.

Type

string — The Jomres page meta title.

Methods

__construct()

__construct() 

Define the Jomres core functionality.

Set the Jomres name and the Jomres 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.

getInstance()

getInstance() 

Get Jomres instance.

Description.

add_jomres_js_css()

add_jomres_js_css() 

Register all scripts and styles related to the Jomres andmin and public-facing functionality.

jomres_wp_end_session()

jomres_wp_end_session() 

Clear the Jomres session data.

jomres_add_custom_meta()

jomres_add_custom_meta() 

Echoes the Jomres custom meta data.

run()

run() 

Run the loader to execute all of the hooks with WordPress.

get_plugin_name()

get_plugin_name() : string

The name of the plugin used to uniquely identify it within the context of WordPress and to define internationalization functionality.

Returns

string —

The name of the plugin.

get_loader()

get_loader() : \Jomres_Loader

The reference to the class that orchestrates the hooks with the plugin.

Returns

\Jomres_Loader

Orchestrates the hooks of the plugin.

get_version()

get_version() : string

Retrieve the Jomres version number.

Returns

string —

The Jomres version number.

get_js()

get_js() : array

Retrieve the Jomres js.

Returns

array —

The Jomres js.

get_css()

get_css() : array

Retrieve the Jomres css.

Returns

array —

The Jomres css.

get_custom_meta()

get_custom_meta() : array

Retrieve the Jomres custom meta.

Returns

array —

The Jomres custom meta.

get_content()

get_content() : string

Retrieve the Jomres output.

Returns

string —

The Jomres output.

get_meta_title()

get_meta_title() : array

Retrieve the Jomres page metta title.

Returns

array —

The Jomres page meta title.

set_content()

set_content(  $content) : boolean

Retrieve the Jomres output.

Parameters

$content

Returns

boolean —

true.

add_js()

add_js(  $filename,   $js,   $version) : boolean

Adds javascript files to $js array.

Parameters

$filename
$js
$version

Returns

boolean —

true.

add_css()

add_css(  $filename,   $css,   $version) : boolean

Adds javascript files to $js array.

Parameters

$filename
$css
$version

Returns

boolean —

true.

add_custom_meta()

add_custom_meta(  $meta) : boolean

Adds custom meta data cu $custom_meta array.

Parameters

$meta

Returns

boolean —

true.

set_meta_title()

set_meta_title(  $title) : boolean

Sets the Jomres page meta title.

Parameters

$title

Returns

boolean —

true.

load_dependencies()

load_dependencies() 

Load the required Jomres dependencies.

Include the following files that make up the plugin:

  • Jomres_Loader. Orchestrates the hooks of the plugin.
  • Jomres_i18n. Defines internationalization functionality.
  • Jomres_Admin. Defines all hooks for the admin area.
  • Jomres_Public. Defines all hooks for the public side of the site.

Create an instance of the loader which will be used to register the hooks with WordPress.

set_locale()

set_locale() 

Define the Jomres locale for internationalization.

Uses the Jomres_i18n class in order to set the domain and to register the hook with WordPress.

define_common_hooks()

define_common_hooks() 

Register all of the common hooks related to the Jomres admin area and public-facing functionality.

define_admin_hooks()

define_admin_hooks() 

Register all of the hooks related to the Jomres admin area functionality.

define_public_hooks()

define_public_hooks() 

Register all of the hooks related to the Jomres public-facing functionality.