WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/upload is user over quota"

(Structure.)
 
(Include more information about the function)
Line 1: Line 1:
 
== Description ==
 
== Description ==
+
Check whether a blog has used its allotted upload space.
 
== Usage ==
 
== Usage ==
   
%%% <?php ?> %%%
+
%%% <?php upload_is_user_over_quota( $echo ) ?> %%%
   
 
== Parameters ==
 
== Parameters ==
  +
{{Parameter|$echo|boolean|If <tt>$echo</tt> is set and the quota is exceeded, a warning message is echoed.|optional|true}}
  +
  +
== Return Value ==
  +
  +
{{Return||boolean|False if quota has not been exceeded or upload quota is disabled, True otherwise.}}
   
 
== Examples ==
 
== Examples ==
Line 17: Line 22:
 
== Source File ==
 
== Source File ==
   
<tt> </tt> is located in {{Trac| }}
+
<tt>upload_is_user_over_quota()</tt> is located in {{Trac|wp-admin/includes/ms.php}}
   
 
== Related ==
 
== Related ==

Revision as of 19:23, 12 December 2012

Description

Check whether a blog has used its allotted upload space.

Usage

 <?php upload_is_user_over_quota$echo ?> 

Parameters

$echo
(boolean) (optional) If $echo is set and the quota is exceeded, a warning message is echoed.
Default: true

Return Value

(boolean) 
False if quota has not been exceeded or upload quota is disabled, True otherwise.

Examples

Default Usage

Change Log

Source File

upload_is_user_over_quota() is located in wp-admin/includes/ms.php

Related