Sources and collectionseasy_svg_pro_source_file_max_bytes

easy_svg_pro_source_file_max_bytes

Caps the size of a single icon file in a source folder; bigger files are skipped unread.

Filter · Easy SVG Pro · Status: Internal · Defined in includes/sources/sources.php

Internal: not part of the promised public surface. It may change without notice.

Usage

apply_filters( 'easy_svg_pro_source_file_max_bytes', int $bytes )

Example

add_filter( 'easy_svg_pro_source_file_max_bytes', function () {
	return 512 * KB_IN_BYTES;
} );

Description

Applies to theme, drop-in and registered folders. A skipped file is reported as a problem for that collection in wp easy-svg icons problems and in the Pakete tab. Like the icon cap, it takes effect when a folder is rescanned.

Parameters

body
$bytesint

Bytes one icon file may have before it is skipped unread.

Return value

returnint

The per-file byte cap, at least 1.

Default: 2097152 (2 MB)