Overview

Namespaces

  • None
  • VSP
    • Core
      • Abstracts
      • Interfaces
      • Traits
        • WC_Compatibility
    • Deprecation
    • Helper
    • Modules
      • Addons
      • Logger

Classes

  • Actions
  • Filters
  • Overview
  • Namespace
  • Class

Class Filters

Handles deprecation notices and triggering of legacy filter hooks

WPOnion\Bridge\Deprecated_Hooks
Extended by VSP\Deprecation\Filters
Namespace: VSP\Deprecation
Located at includes/deprecation/class-filters.php
Methods summary
protected mixed
# trigger_hook( string $old_hook, array $new_callback_args )

Fire off a legacy hook with it's args.

Fire off a legacy hook with it's args.

Parameters

$old_hook
Old hook name.
$new_callback_args
New callback args.

Returns

mixed
Properties summary
protected array $deprecated_hooks

Array of deprecated hooks we need to handle. Format of 'new' => 'old'.

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 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

Which Type of Hook is this action / filter

# 'filter'
API documentation generated by ApiGen