WC_Deprecated_Hooks::trigger_hook()protectedWC 1.0

Fire off a legacy hook with it's args.

Method of the class: WC_Deprecated_Hooks{}

No Hooks.

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_Hooks::trigger_hook() code WC 8.6.1

abstract protected function trigger_hook( $old_hook, $new_callback_args );