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.8.7.0

apply_filters('woocommerce_log_file_size_limit') is found 2 times:

  • /includes/log-handlers/class-wc-log-handler-file.php line 57
    		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 107

    * @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]