Definition:
function wp_max_upload_size() {}
Defined filters
- upload_size_limit
apply_filters( 'upload_size_limit', min($u_bytes, $p_bytes)
Source code
function wp_max_upload_size() {
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
$p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );
$bytes = apply_filters( 'upload_size_limit', min($u_bytes, $p_bytes), $u_bytes, $p_bytes );
return $bytes;
}
3905

February 12, 2011 


No comments yet... Be the first to leave a reply!