WC_Deprecated_Filter_Hooks::trigger_hook()protectedWC 1.0

Fire off a legacy hook with it's args.

Method of the class: WC_Deprecated_Filter_Hooks{}

Hooks from the method

Return

Mixed.

Usage

// protected - for code of main (parent) or child class
$result = $this->trigger_hook( $old_hook, $new_callback_args );
$old_hook(string) (required)
Old hook name.
$new_callback_args(array) (required)
New callback args.

WC_Deprecated_Filter_Hooks::trigger_hook() code WC 9.3.3

protected function trigger_hook( $old_hook, $new_callback_args ) {
	return apply_filters_ref_array( $old_hook, $new_callback_args );
}