WC_Deprecated_Hooks::display_notice()protectedWC 1.0

Display a deprecated notice for old hooks.

Method of the class: WC_Deprecated_Hooks{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->display_notice( $old_hook, $new_hook );
$old_hook(string) (required)
Old hook.
$new_hook(string) (required)
New hook.

WC_Deprecated_Hooks::display_notice() code WC 8.7.0

protected function display_notice( $old_hook, $new_hook ) {
	wc_deprecated_hook( esc_html( $old_hook ), esc_html( $this->get_deprecated_version( $old_hook ) ), esc_html( $new_hook ) );
}