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)
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub