[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> class-wp-debug-data.php (summary)

(no description)

File Size: 1342 lines (48 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Debug_Data:: (5 methods):
  check_for_updates()
  debug_data()
  format()
  get_database_size()
  get_sizes()


Class: WP_Debug_Data  - X-Ref

Class for providing debug data based on a users WordPress environment.

check_for_updates()   X-Ref
Calls all core functions to check for updates.

since: 5.2.0

debug_data()   X-Ref
Static function for generating site debug data when required.

since: 5.2.0
return: array The debug data for the site.

format( $info_array, $type )   X-Ref
Format the information gathered for debugging, in a manner suitable for copying to a forum or support ticket.

since: 5.2.0
return: string The formatted data.
param: array $info_array Information gathered from the `WP_Debug_Data::debug_data` function.
param: string $type      The data type to return, either 'info' or 'debug'.

get_database_size()   X-Ref
Fetch the total size of all the database tables for the active database user.

since: 5.2.0
return: int The size of the database, in bytes.

get_sizes()   X-Ref
Fetch the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`.
Intended to supplement the array returned by `WP_Debug_Data::debug_data()`.

since: 5.2.0
return: array The sizes of the directories, also the database size and total installation size.



Generated: Sun Sep 22 01:00:03 2019 Cross-referenced by PHPXref 0.7.1