Skip to content

Commit 5cbf137

Browse files
authored
Tweak: Added context on AAL settings (#166)
1 parent b597c87 commit 5cbf137

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

hooks/class-aal-hook-options.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ public function hooks_updated_option( $option, $oldvalue, $_newvalue ) {
9696
$this->insert_log( $option );
9797
}
9898

99-
private function insert_log( $option_name ) {
99+
private function insert_log( $option_name, $context = '' ) {
100100
// TODO: need to think about save old & new values.
101101
aal_insert_log( array(
102102
'action' => 'updated',
103103
'object_type' => 'Options',
104104
'object_name' => $option_name,
105+
'object_subtype' => $context,
105106
) );
106107
}
107108

@@ -113,7 +114,7 @@ public function hooks_aal_options( $old_values, $new_values ) {
113114
continue;
114115
}
115116

116-
$this->insert_log( $option_key );
117+
$this->insert_log( $option_key, 'Activity Log' );
117118
}
118119
}
119120

0 commit comments

Comments
 (0)