upload_ui_over_quota

upload_ui_over_quota

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('upload_ui_over_quota') is found 2 times:

  • /wp-admin/includes/media.php line 2141
    2137
    2138
    2139
    2140
    2141
    2142
    2143
    2144
    2145
    2146
    2147
         * Fires when an upload will exceed the defined upload space quota for a network site.
         *
         * @since 3.5.0
         */
        do_action( 'upload_ui_over_quota' );
        return;
    }
     
    /**
     * Fires just before the legacy (pre-3.5.0) upload interface is loaded.
     *
  • /wp-includes/media-template.php line 259
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
        <div class="upload-ui">
            <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2>
            <?php
            /** This action is documented in wp-admin/includes/media.php */
            do_action( 'upload_ui_over_quota' );
            ?>
        </div>
    <?php else : ?>
        <div class="upload-ui">
            <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files to upload' ); ?></h2>
            <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>