WP_Debug_Data::get_database_size(): int

In this article

Fetches the total size of all the database tables for the active database user.

Return

int The size of the database, in bytes.

Source

	'label'   => __( 'Database username' ),
	'value'   => $wpdb->dbuser,
	'private' => true,
),
'database_host'      => array(
	'label'   => __( 'Database host' ),
	'value'   => $wpdb->dbhost,
	'private' => true,
),
'database_name'      => array(
	'label'   => __( 'Database name' ),
	'value'   => $wpdb->dbname,
	'private' => true,

Changelog

VersionDescription
5.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.