Quantcast
Channel: WordPress Developer Resources | Developer.WordPress.org
Viewing all articles
Browse latest Browse all 15

_deprecated_class()

$
0
0

There is a ‘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 _deprecated_constructor() for deprecating PHP4-style constructors.


Viewing all articles
Browse latest Browse all 15

Trending Articles