woocommerce_shutdown_error action-hookWC 3.2.0

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::log_errors()
woocommerce_shutdown_error
woocommerce/includes/class-woocommerce.php 421
do_action( 'woocommerce_shutdown_error', $error );

Where the hook is used in WooCommerce

Usage not found.