WC_Deprecated_Action_Hooks::hook_inpublicWC 1.0

Hook into the new hook so we can handle deprecated hooks once fired.

Method of the class: WC_Deprecated_Action_Hooks{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Deprecated_Action_Hooks = new WC_Deprecated_Action_Hooks();
$WC_Deprecated_Action_Hooks->hook_in( $hook_name );
$hook_name(string) (required)
Hook name.

WC_Deprecated_Action_Hooks::hook_in() code WC 10.3.3

public function hook_in( $hook_name ) {
	add_action( $hook_name, array( $this, 'maybe_handle_deprecated_hook' ), -1000, 8 );
}