There is a class called SimpleHistoryLogQuery that you can use to get events as an array and then do whatever you like with it.
Something like this should get you started:
// Get the last 20 events from Simple History
$query = new SimpleHistoryLogQuery();
$query_args = array(
"paged" => 1,
"posts_per_page" => 20
);
$events = $query->query($query_args);
foreach ( $events["log_rows"] as $one_row ) {
// do something with each row..
echo '<pre>' . print_r($one_row, true) . '</pre>';
}
Hi Par, thanks.
I have an additional question,
is there any way that we can group the log entries, for example, a custom field in a log entry perhaps? Any way to do this? Thanks
Nice! How can I get translated message? Thanks