WC_Deprecated_Hooks::get_old_hooks( string $new_hook )

Get old hooks to map to new hook.


Description Description


Parameters Parameters

$new_hook

(Required) New hook name.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-deprecated-hooks.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.