WooCommerce Code Reference

WC_Admin_Status

WC_Admin_Status Class.

Table of Contents

get_file_version()  : string
Retrieve metadata from a file. Based on WP Core's get_file_data function.
get_latest_theme_version()  : string
Get latest version of a theme by slug.
get_log_file_handle()  : string
Return the log file handle.
get_tools()  : array
Get tools.
output()  : mixed
Handles output of the reports page in admin.
remove_log()  : mixed
Remove/delete the chosen file.
scan_log_files()  : array
Scan the log files.
scan_template_files()  : array
Scan the template files.
status_logs()  : mixed
Show the logs page.
status_logs_db()  : mixed
Show the log page contents for db log handler.
status_logs_file()  : mixed
Show the log page contents for file log handler.
status_report()  : mixed
Handles output of report.
status_tools()  : mixed
Handles output of tools.
flush_db_logs()  : mixed
Clear DB log table.
log_table_bulk_actions()  : mixed
Bulk DB log table actions.
output_plugins_info()  : void
Prints the information about plugins for the system status report.
output_tables_info()  : mixed
Prints table info if a base table is not present.

Methods

get_file_version()

Retrieve metadata from a file. Based on WP Core's get_file_data function.

public static get_file_version(string $file) : string
Parameters
$file : string

Path to the file.

Tags
since
2.1.1
Return values
string

get_latest_theme_version()

Get latest version of a theme by slug.

public static get_latest_theme_version(object $theme) : string
Parameters
$theme : object

WP_Theme object.

Return values
stringVersion number if found.

get_log_file_handle()

Return the log file handle.

public static get_log_file_handle(string $filename) : string
Parameters
$filename : string

Filename to get the handle for.

Return values
string

scan_template_files()

Scan the template files.

public static scan_template_files(string $template_path) : array
Parameters
$template_path : string

Path to the template directory.

Return values
array

output_plugins_info()

Prints the information about plugins for the system status report.

private static output_plugins_info(array $plugins, array $untested_plugins) : void

Used for both active and inactive plugins sections.

Parameters
$plugins : array

List of plugins to display.

$untested_plugins : array

List of plugins that haven't been tested with the current WooCommerce version.