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.
- // run the action
- do_action( 'upload_ui_over_quota' );
- The following example is for adding a hook callback.
- // define the upload_ui_over_quota callback
- function action_upload_ui_over_quota( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'upload_ui_over_quota', 'action_upload_ui_over_quota', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action( 'upload_ui_over_quota' );
- /wp-includes/media-template.php
- do_action( 'upload_ui_over_quota' ); ?>
- /wp-includes/ms-default-filters.php
- add_action( 'upload_ui_over_quota', 'multisite_over_quota_message' );