WordPress at a glance
filter is not described

woocommerce_logger_days_to_retain_logs filter-hook . WC 3.4.0

Clear all logs older than a defined number of days. Defaults to 30 days.

Usage

add_filter( 'woocommerce_logger_days_to_retain_logs', 'filter_function_name_3198' );
function filter_function_name_3198( $30 ){
	// filter...

	return $30;
}
$30
-

Changelog

Since 3.4.0 Introduced.

Where the hook is called

WC_Logger::clear_expired_logs()
woocommerce_logger_days_to_retain_logs
woocommerce/includes/class-wc-logger.php 294
$days      = absint( apply_filters( 'woocommerce_logger_days_to_retain_logs', 30 ) );

Where in WP core the hook is used WooCommerce

Usage not found.