is_wp_error_instance хук-событие . WP 5.6.0
Fires when is_wp_error() is called and its parameter is an instance of WP_Error.
Использование
add_action( 'is_wp_error_instance', 'action_function_name_1712' ); function action_function_name_1712( $thing ){ // action... }
- $thing(WP_Error)
- The error object passed to is_wp_error().
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
is_wp_error_instance
wp-includes/load.php 1514
do_action( 'is_wp_error_instance', $thing );