_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:

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.

Related Functions

_deprecated_file, _deprecated_hook, _deprecated_argument, _deprecated_constructor, _deprecated_function

Top Google Results

User discussions

wpseek mobile