\MainWP\DashboardMainWP_Deprecated_Hooks

Class MainWP_Deprecated_Hooks

Summary

Methods
Properties
Constants
instance()
__construct()
get_class_name()
get_replacement_hooks()
maybe_handle_deprecated_hook()
deprecated_message()
$deprecated_filters
$deprecated_actions
$deprecated_version
No constants found
get_deprecated_version()
$instance
N/A
No private methods found
No private properties found
N/A

Properties

$deprecated_filters

$deprecated_filters : array

Array of deprecated filters. Format of 'old' => 'new'.

Type

array

$deprecated_actions

$deprecated_actions : array

Array of deprecated actions. Format of 'old' => 'new'.

Type

array

$deprecated_version

$deprecated_version : array

Array of versions of deprecated hooks.

Type

array

$instance

$instance : mixed

Protected static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

instance()

instance() : \MainWP\Dashboard\class

Method instance()

Returns

\MainWP\Dashboard\class —

instance

__construct()

__construct() 

MainWP_Deprecated_Hooks constructor.

Run each time the class is called.

get_class_name()

get_class_name() : object

Method get_class_name()

Get Class Name.

Returns

object

get_replacement_hooks()

get_replacement_hooks(string  $old_hook) : array

Get old hooks to map to replacement hook.

Parameters

string $old_hook

Old hook name.

Returns

array

maybe_handle_deprecated_hook()

maybe_handle_deprecated_hook() 

If the filter is Deprecated, display a deprecated notice.

deprecated_message()

deprecated_message(string  $old_hook, string  $new_hook, string  $message = null) 

Display a deprecated notice for old hooks.

Parameters

string $old_hook

Old hook.

string $new_hook

New hook.

string $message

message.

get_deprecated_version()

get_deprecated_version(string  $old_hook) : string

Get deprecated version.

Parameters

string $old_hook

Old hook name.

Returns

string