woocommerce_shutdown_error
Action triggered when there are errors during shutdown.
Usage
add_action( 'woocommerce_shutdown_error', 'wp_kama_woocommerce_shutdown_error_action' ); /** * Function for `woocommerce_shutdown_error` action-hook. * * @param $error * * @return void */ function wp_kama_woocommerce_shutdown_error_action( $error ){ // action... }
- $error
- -
Changelog
Since 3.2.0 | Introduced. |
Where the hook is called
woocommerce_shutdown_error
woocommerce/includes/class-woocommerce.php 421
do_action( 'woocommerce_shutdown_error', $error );