WordPress at Your Fingertips
function is not described

WC_Deprecated_Hooks::get_old_hooks() public WC 1.0

Get old hooks to map to new hook.

{} It's a method of the class: WC_Deprecated_Hooks{}

No Hooks.

Return

Array.

Usage

$WC_Deprecated_Hooks = new WC_Deprecated_Hooks();
$WC_Deprecated_Hooks->get_old_hooks( $new_hook );
$new_hook(string) (required)
New hook name.

Code of WC_Deprecated_Hooks::get_old_hooks() WC 5.8.0

public function get_old_hooks( $new_hook ) {
	$old_hooks = isset( $this->deprecated_hooks[ $new_hook ] ) ? $this->deprecated_hooks[ $new_hook ] : array();
	$old_hooks = is_array( $old_hooks ) ? $old_hooks : array( $old_hooks );

	return $old_hooks;
}