pfeifferNet

Settings
in package

Handle requests for site settings values.

  • Return a single setting.
  • Return all settings.
Tags
since
6.3.0
used-by
Redirections::__construct()
used-by
Form_Send_Email
used-by
Send_Email::__construct()
used-by
Form
used-by
Form::__construct()
used-by
Helper::__construct()
used-by
Media::__construct()
used-by
SMTP_Mailer::__construct()
used-by
Assets::__construct()
used-by
Captcha::__construct()
used-by
Social::__construct()
used-by
User::__construct()

Table of Contents

Properties

$instances  : array<string|int, object>
The array of instances of this class and sub-classes.
$settings  : array<string|int, mixed>
Site settings.

Methods

get()  : mixed
Get a setting value.
get_instance()  : object
Creates and/or returns the instance of this class.
__construct()  : void
Initialise the class.

Properties

$instances

The array of instances of this class and sub-classes.

protected static array<string|int, object> $instances = array()
Tags
since
6.3.0

$settings

Site settings.

protected array<string|int, mixed> $settings = array()
Tags
since
6.3.0

Methods

get()

Get a setting value.

public get(string $setting_key[, mixed $default_value = '' ]) : mixed
Parameters
$setting_key : string

The key of the setting to return, or 'all' to return all settings.

$default_value : mixed = ''

The default value to return if the setting is not found.

Tags
since
6.3.0
used-by
filter_related_posts()
used-by
filter_related_posts()
used-by
Redirections::login_redirect()
used-by
Form_Send_Email::init_tool()
used-by
Send_Email::__construct()
used-by
Updater::__construct()
used-by
Email_Contact_Request::send()
used-by
Form::__construct()
used-by
Helper::render_hero_image()
used-by
Media::__construct()
used-by
Related_Posts::__construct()
used-by
SMTP_Mailer::__construct()
used-by
Assets::__construct()
used-by
Captcha::__construct()
used-by
Social::__construct()
used-by
User::set_home_page()
Return values
mixed

The setting value or the default value.

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
6.3.0
Return values
object

The instance of this class.

__construct()

Initialise the class.

protected __construct() : void
Tags
since
6.3.0
uses
get_plugin_metadata()

        
On this page

Search results