WordPress at Your Fingertips
function is not described

WC_Deprecated_Filter_Hooks::trigger_hook() protected WC 1.0

Fire off a legacy hook with it's args.

{} It's a 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.

Code of WC_Deprecated_Filter_Hooks::trigger_hook() WC 5.9.0

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