_deprecated_class
_deprecated_class ( $class_name, $version, $replacement = '' )
Parameters:- (string) class_name The name of the class being instantiated.
- (string) version The version of WordPress that deprecated the class.
- (string) replacement Optional. The class or function that should have been called. Default empty string.
Defined at: - Introduced in WordPress: 6.4.0
- Deprecated in WordPress: —
Description
Marks a class as deprecated and informs when it has been used.There is a {@see 'deprecated_class_run'} hook that will be called that can be used
to get the backtrace up to what file and function called the deprecated class.
The current behavior is to trigger a user error if `WP_DEBUG` is true.
This function is to be used in the class constructor for every deprecated class.
See {@see} for deprecating PHP4-style constructors.