WC_Deprecated_Hooks::display_notice
Display a deprecated notice for old hooks.
Method of the class: WC_Deprecated_Hooks{}
No Hooks.
Returns
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() WC Deprecated Hooks::display notice code WC 10.5.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 ) );
}