upload_ui_over_quota хук-событиеWP 3.5.0

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

Использование

add_action( 'upload_ui_over_quota', 'wp_kama_upload_ui_over_quota_action' );

/**
 * Function for `upload_ui_over_quota` action-hook.
 * 
 * @return void
 */
function wp_kama_upload_ui_over_quota_action(){

	// action...
}

Список изменений

С версии 3.5.0 Введена.

Где вызывается хук

media_upload_form()
upload_ui_over_quota
wp_print_media_templates()
upload_ui_over_quota
wp-admin/includes/media.php 2130
do_action( 'upload_ui_over_quota' );
wp-includes/media-template.php 248
do_action( 'upload_ui_over_quota' );

Где используется хук в WordPress

wp-includes/ms-default-filters.php 104
add_action( 'upload_ui_over_quota', 'multisite_over_quota_message' );