(AUTH_ERROR_FILTER_NAME) filter-hookWC 3.7.0

This filter allows to provide a custom error message when the user is not authenticated.

Usage

add_filter( '(AUTH_ERROR_FILTER_NAME)', 'wp_kama_AUTH_ERROR_FILTER_NAME_filter' );

/**
 * Function for `(AUTH_ERROR_FILTER_NAME)` filter-hook.
 * 
 * @param  $Installer_Error 
 *
 * @return 
 */
function wp_kama_AUTH_ERROR_FILTER_NAME_filter( $Installer_Error ){

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

Changelog

Since 3.7.0 Introduced.

Where the hook is called

WC_REST_WCCOM_Site_Controller::check_permission()
(AUTH_ERROR_FILTER_NAME)
woocommerce/includes/wccom-site/rest-api/endpoints/abstract-wc-rest-wccom-site-controller.php 56-59
$error = apply_filters(
	WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME,
	new Installer_Error( Installer_Error_Codes::NOT_AUTHENTICATED )
);

Where the hook is used in WooCommerce

Usage not found.