do_action( ‘deprecated_constructor_run’, string $class_name, string $version, string $parent_class )

In this article

Fires when a deprecated constructor is called.

Parameters

$class_namestring
The class containing the deprecated constructor.
$versionstring
The version of WordPress that deprecated the function.
$parent_classstring
The parent class calling the deprecated constructor.

Source

do_action( 'deprecated_constructor_run', $class_name, $version, $parent_class );

Changelog

VersionDescription
4.5.0Added the $parent_class parameter.
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.