WP_Importer::is_user_over_quota() WordPress Method

The WP_Importer::is_user_over_quota() method is used to check if the current user is over their allotted storage quota. This is determined by checking if the user's upload_size_limit option is greater than their current_size_limit option. If the user is over their quota, they will not be able to upload any more files.

WP_Importer::is_user_over_quota() #

Check if user has exceeded disk quota


Return

(bool)


Top ↑

Source

File: wp-admin/includes/class-wp-importer.php

	public function is_user_over_quota() {
		if ( function_exists( 'upload_is_user_over_quota' ) ) {
			if ( upload_is_user_over_quota() ) {
				return true;
			}
		}

		return false;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.