woocommerce_logger_days_to_retain_logs

woocommerce_logger_days_to_retain_logs

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_logger_days_to_retain_logs') is found 1 times:

  • /src/Internal/Admin/Logging/Settings.php line 499
    			 * @param int $days The number of days to retain log entries.
    			 *
    			 * @since 3.4.0
    			 */
    			$retention_period = apply_filters( 'woocommerce_logger_days_to_retain_logs', $retention_period );
    		} else {
    			$retention_period = WC_Admin_Settings::get_option( $key );
    		}
    
    		$retention_period = absint( $retention_period );