WordPress at Your Fingertips
function is not described

WC_Deprecated_Hooks::display_notice() protected WC 1.0

Display a deprecated notice for old hooks.

{} It's a method of the class: WC_Deprecated_Hooks{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Deprecated_Hooks::display_notice() WC 5.8.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 ) );
}