Filters the maximum upload size allowed in php.ini.
Parameters
$sizeint- Max upload size limit in bytes.
$u_bytesint- Maximum upload filesize in bytes.
$p_bytesint- Maximum size of POST data in bytes.
Source
return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
The third parameter is the priority to call the callback function. 10 is the default.