WC_Admin_Status::status_logs_db()public staticWC 1.0

Show the log page contents for db log handler.

Метод класса: WC_Admin_Status{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Admin_Status::status_logs_db();

Код WC_Admin_Status::status_logs_db() WC 9.1.2

public static function status_logs_db() {
	// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce handled in flush_db_logs().
	if ( isset( $_REQUEST['flush-logs'] ) ) {
		self::flush_db_logs();
	}

	// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce handled in log_table_bulk_actions().
	if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['log'] ) ) {
		self::log_table_bulk_actions();
	}

	$log_table_list = self::get_db_log_list_table();
	$log_table_list->prepare_items();

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