Filters the highest number of files an author may set a file upload field to. This raises the ceiling rather than setting the count. A field still takes whatever its author chose, so one deliberately set to a single file keeps taking a single file — which is the whole difference between offering more room and overriding everybody’s choice. The editor’s control reads the same number, so what an author is offered is what the site will honour. A field already storing a number above the ceiling is clamped down to it, so removing this filter returns those fields to the default rather than leaving them on a value nothing enforces any more. Bounded by FILE_FIELD_MAX_FILES_ABSOLUTE_LIMIT. Nothing at the receiving end refuses a submission for holding too many files — the endpoint’s per-site budgets log and alert but store the file regardless — so this ceiling is the only thing standing in the way.
Parameters
- $limit
int The highest number of files an author may choose.
Changelog
- Introduced in Jetpack 8.0.0