wordpress / latest / hooks / upload_size_limit.html

apply_filters( 'upload_size_limit', int $size, int $u_bytes, int $p_bytes )

Filters the maximum upload size allowed in php.ini.

Parameters

$size int
Max upload size limit in bytes.
$u_bytes int
Maximum upload filesize in bytes.
$p_bytes int
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 );

Used By

Used By Description

Changelog

Version Description
2.5.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upload_size_limit