WC_Deprecated_Filter_Hooks::trigger_hook()
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 Deprecated Filter Hooks::trigger hook WC 6.7.0
protected function trigger_hook( $old_hook, $new_callback_args ) { return apply_filters_ref_array( $old_hook, $new_callback_args ); }