is_wp_error_instance
Fires when is_wp_error() called and its parameter is an instance of WP_Error.
Usage
add_action( 'is_wp_error_instance', 'wp_kama_is_wp_error_instance_action' );
/**
* Function for `is_wp_error_instance` action-hook.
*
* @param WP_Error $thing The error object passed to `is_wp_error()`.
*
* @return void
*/
function wp_kama_is_wp_error_instance_action( $thing ){
// action...
}
- $thing(WP_Error)
- The error object passed to
is_wp_error().
Changelog
| Since 5.6.0 | Introduced. |
Where the hook is called
is_wp_error_instance
wp-includes/load.php 1815
do_action( 'is_wp_error_instance', $thing );