_deprecated_constructor
- %1$s is private and should not be used in themes or plugins directly.
_deprecated_constructor ( $class, $version, $parent_class = '' )
Access:Parameters:- (string) $class 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.