easy_svg_pro_source_max_icons
Caps how many icons one source folder contributes before the rest are dropped.
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_max_icons', int $max )
Example
add_filter( 'easy_svg_pro_source_max_icons', function () {
return 2500;
} );
Description
Applies to the theme folders, drop-in folders and directories passed to easy_svg_register_icon_collection(). Values below 1 are raised to 1. Scans are cached in a transient keyed by the folder signature, so a changed cap applies the next time a folder is rescanned.
Parameters
body
$maxint
Icons processed per source folder before the rest are dropped.
Return value
returnint
The per-folder icon cap, at least 1.
Default: 1000
Related
Was this page helpful?