WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME хук-фильтрWC 1.0

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

add_filter( 'WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME', 'wp_kama_WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME_filter' );

/**
 * Function for `WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME` filter-hook.
 * 
 * @param  $WP_Error 
 *
 * @return 
 */
function wp_kama_WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME_filter( $WP_Error ){

	// filter...
	return $WP_Error;
}
$WP_Error
-

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

WC_REST_WCCOM_Site_Installer_Controller::check_permission()
WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME
woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php 80-87
return apply_filters(
	WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME,
	new WP_Error(
		WC_REST_WCCOM_Site_Installer_Errors::NOT_AUTHENTICATED_CODE,
		WC_REST_WCCOM_Site_Installer_Errors::NOT_AUTHENTICATED_MESSAGE,
		array( 'status' => WC_REST_WCCOM_Site_Installer_Errors::NOT_AUTHENTICATED_HTTP_CODE )
	)
);

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

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