woocommerce_remote_logger_request_uri_whitelist filter-hookWC 9.4.0

Filter to allow other plugins to whitelist request_uri query parameter values for unmasked remote logging.

Usage

add_filter( 'woocommerce_remote_logger_request_uri_whitelist', 'wp_kama_woocommerce_remote_logger_request_uri_whitelist_filter' );

/**
 * Function for `woocommerce_remote_logger_request_uri_whitelist` filter-hook.
 * 
 * @param string $default_whitelist The default whitelist of query parameters.
 *
 * @return string
 */
function wp_kama_woocommerce_remote_logger_request_uri_whitelist_filter( $default_whitelist ){

	// filter...
	return $default_whitelist;
}
$default_whitelist(string)
The default whitelist of query parameters.

Changelog

Since 9.4.0 Introduced.

Where the hook is called

RemoteLogger::sanitize_request_uri()
woocommerce_remote_logger_request_uri_whitelist
woocommerce/src/Internal/Logging/RemoteLogger.php 475
$whitelist = apply_filters( 'woocommerce_remote_logger_request_uri_whitelist', $default_whitelist );

Where the hook is used in WooCommerce

Usage not found.