1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72:
<?php
namespace VSP\Deprecation;
use WPOnion\Bridge\Deprecated_Hooks;
defined( 'ABSPATH' ) || exit;
class Filters extends Deprecated_Hooks {
protected $deprecated_hooks = 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 $deprecated_version = 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 $type = 'filter';
protected function trigger_hook( $old_hook, $new_callback_args ) {
return apply_filters_ref_array( $old_hook, $new_callback_args );
}
}