deprecated_constructor_run хук-событие . WP 4.3.0
Fires when a deprecated constructor is called.
Использование
add_action( 'deprecated_constructor_run', 'action_function_name_9960', 10, 3 ); function action_function_name_9960( $class, $version, $parent_class ){ // action... }
- $class(строка)
- The class containing the deprecated constructor.
- $version(строка)
- The version of WordPress that deprecated the function.
- $parent_class(строка)
- The parent class calling the deprecated constructor.
Список изменений
С версии 4.3.0 | Введена. |
С версии 4.5.0 | Added the $parent_class parameter. |
Где вызывается хук
deprecated_constructor_run
wp-includes/functions.php 4929
do_action( 'deprecated_constructor_run', $class, $version, $parent_class );