woocommerce_logger_delete_expired_file

woocommerce_logger_delete_expired_file

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_logger_delete_expired_file') is found 1 times:

  • /src/Internal/Admin/Logging/LogHandlerFileV2.php line 261

    * @param int $timestamp The expiration threshold.
    *
    * @since 8.7.0
    */
    $delete = apply_filters( ‘woocommerce_logger_delete_expired_file’, true, $file, $timestamp );

    return boolval( $delete );
    }
    );

    if ( count( $files ) < 1 ) { [/php]