_deprecated_constructor
_deprecated_constructor ( $class_name, $version, $parent_class = '' )
Parameters:- (string) class_name The class containing the deprecated constructor.
- (string) version The version of WordPress that deprecated the function.
- (string) parent_class Optional. The parent class calling the deprecated constructor. Default empty string.
Defined at:Change Log: - Introduced in WordPress: 4.3.0
- Deprecated in WordPress: —
Description
Marks a constructor as deprecated and informs when it has been used.Similar to _deprecated_function(), but with different strings. Used to
remove PHP4-style constructors.
The current behavior is to trigger a user error if `WP_DEBUG` is true.
This function is to be used in every PHP4-style constructor method that is deprecated.