deprecated_constructor_run хук-событиеWP 4.3.0

Fires when a deprecated constructor is called.

Использование

add_action( 'deprecated_constructor_run', 'wp_kama_deprecated_constructor_run_action', 10, 3 );

/**
 * Function for `deprecated_constructor_run` action-hook.
 * 
 * @param string $class_name   The class containing the deprecated constructor.
 * @param string $version      The version of WordPress that deprecated the function.
 * @param string $parent_class The parent class calling the deprecated constructor.
 *
 * @return void
 */
function wp_kama_deprecated_constructor_run_action( $class_name, $version, $parent_class ){

	// action...
}
$class_name(строка)
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()
deprecated_constructor_run
wp-includes/functions.php 5583
do_action( 'deprecated_constructor_run', $class_name, $version, $parent_class );

Где используется хук в WordPress

Использование не найдено.