Query API
You can get things for the history by using the class SimpleHistoryLogQuery
.
A quick example:
$logQuery = new SimpleHistoryLogQuery();
// Array with arguments..
$args = [
// ...
];
$queryResults = $logQuery->query( $args );
foreach ( $queryResults['log_rows'] as $row ) {
$header_output = $this->sh->getLogRowHeaderOutput( $row );
$text_output = $this->sh->getLogRowPlainTextOutput( $row );
$details_output = $this->sh->getLogRowDetailsOutput( $row );
// ...
}