woocommerce_log_file_size_limit

woocommerce_log_file_size_limit

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_log_file_size_limit') is found 2 times:

  • /includes/log-handlers/class-wc-log-handler-file.php line 58
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
        if ( null === $log_size_limit ) {
            $log_size_limit = 5 * 1024 * 1024;
        }
     
        $this->log_size_limit = apply_filters( 'woocommerce_log_file_size_limit', $log_size_limit );
     
        add_action( 'plugins_loaded', array( $this, 'write_cached_logs' ) );
    }
     
    /**
     * Destructor.
  • /src/Internal/Admin/Logging/FileV2/FileController.php line 94

    * @since 3.4.0
    *
    * @param int $file_size_limit The file size limit in bytes.
    */
    $file_size_limit = apply_filters( ‘woocommerce_log_file_size_limit’, $default );

    if ( ! is_int( $file_size_limit ) || $file_size_limit < 1 ) { return $default; } return $file_size_limit; [/php]