Skip to content

Commit b708d72

Browse files
committed
Tweak: Added log on export
1 parent 5cbf137 commit b708d72

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

classes/class-aal-export.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function admin_capture_action( $list_table ) {
4141
if ( ! array_key_exists( $exporter_selected, $this->get_exporters() ) ) {
4242
$this->redirect_back();
4343
}
44+
45+
$this->insert_export_log();
4446

4547
// Disable row limit
4648
add_filter( 'edit_aal_logs_per_page', array( $this, 'increase_throughput' ) );
@@ -110,6 +112,15 @@ private function prep_row( $item, $columns, $list_table ) {
110112

111113
return $row;
112114
}
115+
116+
private function insert_export_log() {
117+
aal_insert_log( array(
118+
'action' => 'exported',
119+
'object_type' => 'Options',
120+
'object_name' => 'exported',
121+
'object_subtype' => 'Activity Log',
122+
) );
123+
}
113124

114125
public function admin_register_exporters() {
115126
$builtin_exporters = array(

0 commit comments

Comments
 (0)