woocommerce_remote_logging_is_third_party_error
Filter to allow other plugins to overwrite the result of the third-party error check for remote logging.
Usage
add_filter( 'woocommerce_remote_logging_is_third_party_error', 'wp_kama_woocommerce_remote_logging_is_third_party_error_filter', 10, 3 ); /** * Function for `woocommerce_remote_logging_is_third_party_error` filter-hook. * * @param bool $is_third_party_error The result of the third-party error check. * @param string $message The error message. * @param array $context The error context. * * @return bool */ function wp_kama_woocommerce_remote_logging_is_third_party_error_filter( $is_third_party_error, $message, $context ){ // filter... return $is_third_party_error; }
- $is_third_party_error(true|false)
- The result of the third-party error check.
- $message(string)
- The error message.
- $context(array)
- The error context.
Changelog
Since 9.2.0 | Introduced. |
Where the hook is called
woocommerce_remote_logging_is_third_party_error
woocommerce/src/Internal/Logging/RemoteLogger.php 336
return apply_filters( 'woocommerce_remote_logging_is_third_party_error', true, $message, $context );