A WordPress-centric search engine for devs and theme authors



upload_size_limit ›

Since2.5.0
Deprecatedn/a
apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes )
Parameters: (3)
  • (int) $size Max upload size limit in bytes.
    Required: Yes
  • (int) $u_bytes Maximum upload filesize in bytes.
    Required: Yes
  • (int) $p_bytes Maximum size of POST data in bytes.
    Required: Yes
Defined at:
Codex:

Filters the maximum upload size allowed in php.ini.





Source

return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );