Class Filters
Handles deprecation notices and triggering of legacy filter hooks
- WPOnion\Bridge\Deprecated_Hooks
- VSP\Deprecation\Filters
protected
mixed
|
protected
array
|
$deprecated_hooks
Array of deprecated hooks we need to handle. Format of 'new' => 'old'. |
#
array(
'vsp/wc/payment_gateway/label' => 'vsp_wc_payment_gateway_label',
'vsp/wc/shipping_methods/label' => 'vsp_wc_shipping_methods_label',
'vsp/wc/shipping_methods/instance/label' => 'vsp_wc_shipping_methods_by_instance_label',
'vsp/placeholder_img' => 'vsp_placeholder_img',
'vsp/date/format' => 'vsp_date_format',
'vsp/time/format' => 'vsp_time_format',
'vsp/log/class' => 'vsp_logging_class',
'vsp/log/format/entry' => 'vsp_format_log_entry',
'vsp/log/register/handlers' => 'vsp_register_log_handlers',
'vsp/log/message' => 'vsp_logger_log_message',
'vsp/log/add/message' => 'vsp_logger_add_message',
)
|
protected
array
|
$deprecated_version
Array of versions on each hook has been deprecated. |
#
array(
'vsp_wc_payment_gateway_label' => '0.9',
'vsp_wc_shipping_methods_label' => '0.9',
'vsp_wc_shipping_methods_by_instance_label' => '0.9',
'vsp_placeholder_img' => '0.9',
'vsp_logging_class' => '0.9',
'vsp_date_format' => '0.9',
'vsp_time_format' => '0.9',
'vsp_format_log_entry' => '0.9',
'vsp_register_log_handlers' => '0.9',
'vsp_logger_log_message' => '0.9',
'vsp_logger_add_message' => '0.9',
)
|
protected
string
|
$type
Which Type of Hook is this action / filter |
#
'filter'
|