EVF_Deprecated_Hooks class maps old actions and filters to new ones. This is the base class for handling those deprecated hooks.
Description
Based on the WCS_Hook_Deprecator class by Prospress.
Methods
- __construct — Constructor.
- display_notice — Display a deprecated notice for old hooks.
- get_deprecated_version — Get deprecated version.
- get_old_hooks — Get old hooks to map to new hook.
- handle_deprecated_hook — If the old hook is in-use, trigger it.
- hook_in — Hook into the new hook so we can handle deprecated hooks once fired.
- maybe_handle_deprecated_hook — If the hook is Deprecated, call the old hooks here.
- trigger_hook — Fire off a legacy hook with it’s args.