apply_filters( 'upload_size_limit', int $size , int $u_bytes , int $p_bytes )
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
File: wp-includes/media.php.
View all references
return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
The third parameter is the priority to call the callback function. 10 is the default.