[ Index ]

PHP Cross Reference of WordPress




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

(no description)

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

Defines 1 class

WP_Debug_Data:: (6 methods):

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.

return: array The debug data for the site.
since: 5.2.0
since: 5.3.0 Added database charset, database collation,
since: 5.5.0 Added pretty permalinks support information.

get_mysql_var( $mysql_var )   X-Ref
Returns the value of a MySQL system variable.

param: string $mysql_var Name of the MySQL system variable.
return: string|null The variable value on success. Null if the variable does not exist.
since: 5.9.0

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

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

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

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

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()`.

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

Generated: Sat Apr 20 01:00:03 2024 Cross-referenced by PHPXref 0.7.1