upload_ui_over_quota

Fires when an upload will exceed the defined upload space quota for a network site.

Description

do_action( 'upload_ui_over_quota' ); 

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'upload_ui_over_quota' ); 
The following example is for adding a hook callback.
  1. // define the upload_ui_over_quota callback 
  2. function action_upload_ui_over_quota( ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'upload_ui_over_quota', 'action_upload_ui_over_quota', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'upload_ui_over_quota', 'action_upload_ui_over_quota', 10, 0 ); 

Defined (3)

The action is defined in the following location(s).

/wp-admin/includes/media.php  
  1. do_action( 'upload_ui_over_quota' ); 
/wp-includes/media-template.php  
  1. do_action( 'upload_ui_over_quota' ); ?> 
/wp-includes/ms-default-filters.php  
  1. add_action( 'upload_ui_over_quota', 'multisite_over_quota_message' );