WC_Admin_Status
in package
WC_Admin_Status Class.
Table of Contents
- $db_log_list_table : WC_Admin_Log_Table_List
- An instance of the DB log handler list table.
- get_db_log_list_table() : WC_Admin_Log_Table_List
- Return a stored instance of the DB log list table class.
- 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<string|int, mixed>
- Get tools.
- output() : mixed
- Handles output of the reports page in admin.
- remove_log() : mixed
- Remove/delete the chosen file.
- scan_log_files() : array<string|int, mixed>
- Scan the log files.
- scan_template_files() : array<string|int, mixed>
- 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.
Properties
$db_log_list_table
An instance of the DB log handler list table.
private
static WC_Admin_Log_Table_List
$db_log_list_table
Methods
get_db_log_list_table()
Return a stored instance of the DB log list table class.
public
static get_db_log_list_table() : WC_Admin_Log_Table_List
Return values
WC_Admin_Log_Table_List —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
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
string — Version 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 —get_tools()
Get tools.
public
static get_tools() : array<string|int, mixed>
Return values
array<string|int, mixed> — of toolsoutput()
Handles output of the reports page in admin.
public
static output() : mixed
Return values
mixed —remove_log()
Remove/delete the chosen file.
public
static remove_log() : mixed
Return values
mixed —scan_log_files()
Scan the log files.
public
static scan_log_files() : array<string|int, mixed>
Return values
array<string|int, mixed> —scan_template_files()
Scan the template files.
public
static scan_template_files(string $template_path) : array<string|int, mixed>
Parameters
- $template_path : string
-
Path to the template directory.
Return values
array<string|int, mixed> —status_logs()
Show the logs page.
public
static status_logs() : mixed
Return values
mixed —status_logs_db()
Show the log page contents for db log handler.
public
static status_logs_db() : mixed
Return values
mixed —status_logs_file()
Show the log page contents for file log handler.
public
static status_logs_file() : mixed
Return values
mixed —status_report()
Handles output of report.
public
static status_report() : mixed
Return values
mixed —status_tools()
Handles output of tools.
public
static status_tools() : mixed
Return values
mixed —flush_db_logs()
Clear DB log table.
private
static flush_db_logs() : mixed
Tags
Return values
mixed —log_table_bulk_actions()
Bulk DB log table actions.
private
static log_table_bulk_actions() : mixed
Tags
Return values
mixed —output_plugins_info()
Prints the information about plugins for the system status report.
private
static output_plugins_info(array<string|int, mixed> $plugins, array<string|int, mixed> $untested_plugins) : void
Used for both active and inactive plugins sections.
Parameters
- $plugins : array<string|int, mixed>
-
List of plugins to display.
- $untested_plugins : array<string|int, mixed>
-
List of plugins that haven't been tested with the current WooCommerce version.
Return values
void —output_tables_info()
Prints table info if a base table is not present.
private
static output_tables_info() : mixed