(AUTH_ERROR_FILTER_NAME)
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
(AUTH_ERROR_FILTER_NAME)
woocommerce/includes/wccom-site/rest-api/endpoints/abstract-wc-rest-wccom-site-controller.php 58-61
$error = apply_filters( WC_WCCOM_Site::AUTH_ERROR_FILTER_NAME, new Installer_Error( Installer_Error_Codes::NOT_AUTHENTICATED ) );