woocommerce_page_wc-addons_connection_error хук-событиеWC 1.0

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

add_action( 'woocommerce_page_wc-addons_connection_error', 'wp_kama_woocommerce_page_wc_addons_connection_error_action' );

/**
 * Function for `woocommerce_page_wc-addons_connection_error` action-hook.
 * 
 * @param  $raw_featured_error_message 
 *
 * @return void
 */
function wp_kama_woocommerce_page_wc_addons_connection_error_action( $raw_featured_error_message ){

	// action...
}
$raw_featured_error_message
-

Где вызывается хук

WC_Admin_Addons::render_featured()
woocommerce_page_wc-addons_connection_error
WC_Admin_Addons::get_extension_data()
woocommerce_page_wc-addons_connection_error
woocommerce/includes/admin/class-wc-admin-addons.php 89
do_action( 'woocommerce_page_wc-addons_connection_error', $raw_featured->get_error_message() );
woocommerce/includes/admin/class-wc-admin-addons.php 102
do_action( 'woocommerce_page_wc-addons_connection_error', $response_code );
woocommerce/includes/admin/class-wc-admin-addons.php 123
do_action( 'woocommerce_page_wc-addons_connection_error', 'Empty or malformed response' );
woocommerce/includes/admin/class-wc-admin-addons.php 194
do_action( 'woocommerce_page_wc-addons_connection_error', $raw_extensions->get_error_message() );
woocommerce/includes/admin/class-wc-admin-addons.php 200
do_action( 'woocommerce_page_wc-addons_connection_error', $response_code );
woocommerce/includes/admin/class-wc-admin-addons.php 216
do_action( 'woocommerce_page_wc-addons_connection_error', 'Empty or malformed response' );

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

woocommerce/includes/tracks/events/class-wc-extensions-tracking.php 25
add_action( 'woocommerce_page_wc-addons_connection_error', array( $this, 'track_extensions_page_connection_error' ), 10, 1 );