deprecated_constructor_run action-hook . WP 4.3.0
Fires when a deprecated constructor is called.
Usage
add_action( 'deprecated_constructor_run', 'action_function_name_6122', 10, 3 ); function action_function_name_6122( $class, $version, $parent_class ){ // action... }
- $class(string)
- The class containing the deprecated constructor.
- $version(string)
- The version of WordPress that deprecated the function.
- $parent_class(string)
- The parent class calling the deprecated constructor.
Changelog
Since 4.3.0 | Introduced. |
Since 4.5.0 | Added the $parent_class parameter. |
Where the hook is called
deprecated_constructor_run
wp-includes/functions.php 4929
do_action( 'deprecated_constructor_run', $class, $version, $parent_class );