WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp max upload size

Description

Return the maximum upload size allowed.

Usage

 <?php wp_max_upload_size(); ?> 

Parameters

None.

Return

int -- the value in bytes of the maximum allowed upload size.

Filters

Uses the upload_size_limit filter.

Change Log

Since: 2.5.0

Source File

wp_max_upload_size is located in wp-includes/media.php.