WP_Importer::is_user_over_quota()publicWP 1.0

Checks if user has exceeded disk quota.

Method of the class: WP_Importer{}

No Hooks.

Return

true|false.

Usage

$WP_Importer = new WP_Importer();
$WP_Importer->is_user_over_quota();

WP_Importer::is_user_over_quota() code WP 6.6.2

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

	return false;
}