_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:
  • 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, _deprecated_class, prep_atom_text_construct

Top Google Results

User discussions

wpseek mobile