_deprecated_constructor


_deprecated_constructor ( $class, $version, $parent_class = '' )

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:
  • 4: .
  • 5: .
  • 5: .

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.

Related Functions

_deprecated_function, _deprecated_hook, _deprecated_argument, prep_atom_text_construct, _deprecated_file

Top Google Results

User discussions

wpseek mobile