Use wc_deprecated_function so notices are not triggered on ajax requests
This commit is contained in:
parent
4aaabb07b7
commit
e66efc1dcc
|
@ -78,7 +78,7 @@ abstract class WC_Deprecated_Hooks {
|
|||
* Display a deprecated notice for old hooks.
|
||||
*/
|
||||
protected function display_notice( $old_hook, $new_hook ) {
|
||||
_deprecated_function( sprintf( 'The "%s" hook uses out of date data structures and', esc_html( $old_hook ) ), WC_VERSION, esc_html( $new_hook ) );
|
||||
wc_deprecated_function( sprintf( 'The "%s" hook uses out of date data structures and', esc_html( $old_hook ) ), WC_VERSION, esc_html( $new_hook ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue