WC_Admin_Status::status_logs_db()public staticWC 1.0

Show the log page contents for db log handler.

{} It's a method of the class: WC_Admin_Status{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Status::status_logs_db();

Code of WC_Admin_Status::status_logs_db() WC 6.7.0

public static function status_logs_db() {
	if ( ! empty( $_REQUEST['flush-logs'] ) ) { // WPCS: input var ok, CSRF ok.
		self::flush_db_logs();
	}

	if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['log'] ) ) { // WPCS: input var ok, CSRF ok.
		self::log_table_bulk_actions();
	}

	$log_table_list = new WC_Admin_Log_Table_List();
	$log_table_list->prepare_items();

	include_once __DIR__ . '/views/html-admin-page-status-logs-db.php';
}